Meeting UI Kit: Components, Branding, Locale, and Screen Share
How to embed a full or custom video meeting UI with providers, branding, locale overrides, custom headers, and platform screen-share setup.
This page summarises Cloudflare RealtimeKit UI Kit documentation for developers who need a ready-made meeting interface (RtkMeeting) or a bespoke layout built from RtkGrid, RtkControlbar, and related components. The same patterns apply across web React, React Native, and Angular packages, with extra native steps for iOS screen sharing.
RtkMeeting vs custom UI: which approach to choose
Section titled “RtkMeeting vs custom UI: which approach to choose”RtkMeeting is the fastest path when you want Cloudflare’s default meeting shell (setup screen, grid, control bar, dialogs). The Build using UI Kit guide shows a minimal React meeting component:
Use the
RtkMeetingcomponent and theuseRealtimeKitMeetinghook. This hook provides access to the meeting object that contains all the meeting state and methods.
— Cloudflare, Build using UI Kit
Choose a custom UI when you need a different layout, extra header actions, or tighter branding control. In that case you still use UI Kit primitives (RtkGrid, RtkHeader or your own header, RtkControlbar) and you must keep the meeting object on every control that needs state. The Add Custom Header page states:
If you need additional controls, replace
RtkHeaderwith individual UI Kit components and custom elements.
— Cloudflare, Add Custom Header
| Goal | Typical choice | Main docs |
|---|---|---|
| Ship quickly with defaults | RtkMeeting + showSetupScreen |
RtkMeeting (React), Quickstart |
| Custom toolbar / header | RtkGrid + RtkControlbar + custom header |
Add Custom Header, RtkUIProvider |
| Icons and colours only | iconPackUrl, provideRtkDesignSystem, applyDesignSystem |
Customise Branding, Design System |
| Translated labels | useLanguage + t prop |
Meeting Locale |
useRealtimeKitClient and RealtimeKitProvider: how to wire the meeting object
Section titled “useRealtimeKitClient and RealtimeKitProvider: how to wire the meeting object”Every UI Kit component that accepts a meeting prop expects a client instance created from a participant authToken (from the Add participant API). On React, you initialise inside useEffect, then wrap children in RealtimeKitProvider:
Wrap your meeting component in
RealtimeKitProvider.
— Cloudflare, Build using UI Kit
On React Native, the same flow uses @cloudflare/realtimekit-react-native for the client and provider, and often @cloudflare/realtimekit-react-native-ui for RtkUIProvider and RtkMeeting. Initialise with defaults if you want mic and camera on by default:
initMeeting({ authToken, defaults: { audio: true, video: true },});Angular apps import RealtimeKitComponentsModule into app.module.ts so templates can use rtk-meeting and related tags.
RtkUIProvider on React Native: shell around custom layouts
Section titled “RtkUIProvider on React Native: shell around custom layouts”When you do not use all-in-one RtkMeeting, wrap the tree in RtkUIProvider so shared UI context (and optional locale) is available to Kit widgets. The RtkUIProvider API reference shows composing RtkHeader, RtkGrid, and RtkControlbar under one provider—mirroring what RtkMeeting does internally.
Web React uses RtkUiProvider (different casing) when you assemble custom meeting chrome with the same design tokens as the stock UI.
Custom header: how to replace RtkHeader safely
Section titled “Custom header: how to replace RtkHeader safely”Why wait for roomJoined before rendering the header
Section titled “Why wait for roomJoined before rendering the header”Custom header components should read meeting state through useRealtimeKitMeeting and useRealtimeKitSelector. Cloudflare’s pattern returns null until the local participant has joined:
The component waits for
roomJoinedbefore rendering to ensure the meeting state is ready.
— Cloudflare, Add Custom Header
useRealtimeKitMeetinganduseRealtimeKitSelectormust be called inside a component rendered within aRealtimeKitProvider.
— Cloudflare, Add Custom Header
Which header widgets to compose
Section titled “Which header widgets to compose”Typical replacements pull from @cloudflare/realtimekit-react-native-ui (or the React/web equivalents): RtkLogo, RtkRecordingIndicator, RtkLiveStreamIndicator, RtkMeetingTitle, RtkGridPagination, RtkParticipantCount, and RtkClock. Each accepts meeting={meeting}.
RtkDialogManager when building a custom meeting screen
Section titled “RtkDialogManager when building a custom meeting screen”If you swap out RtkMeeting but keep Kit modals and settings, include RtkDialogManager:
You must include
RtkDialogManager. If you leave it out, features like settings toggles will not work.
— Cloudflare, Add Custom Header
Pair it with RtkGrid and RtkControlbar as in the custom meeting screen example on the same page.
Branding: icon packs and provideRtkDesignSystem
Section titled “Branding: icon packs and provideRtkDesignSystem”iconPackUrl: swap the default icon set
Section titled “iconPackUrl: swap the default icon set”RealtimeKit’s default icons are published at icons.realtime.cloudflare.com (linked from Customise Branding). After you host a generated JSON pack, pass its URL to the root meeting UI:
To replace RealtimeKit’s default icon set with your own, pass the link to your icon set in the UI component.
— Cloudflare, Customise Branding
On React, set iconPackUrl on RtkMeeting; individual widgets such as RtkClock or RtkBreakoutRoomsManager accept an iconPack object where noted in their API pages.
Design system tokens and applyDesignSystem
Section titled “Design system tokens and applyDesignSystem”Import provideRtkDesignSystem from the UI package for your platform (Design System): @cloudflare/realtimekit-react-ui, @cloudflare/realtimekit-angular-ui, @cloudflare/realtimekit-react-native-ui, or the CDN module build. React Native also documents generateBrandColors and generateBackgroundColors alongside RtkUIProvider.
On RtkMeeting, applyDesignSystem={true} applies those tokens to the prebuilt shell without hand-styling every control.
Meeting locale: useLanguage and the t prop
Section titled “Meeting locale: useLanguage and the t prop”UI strings (for example “Mute all”, “Leave”) come from a default language pack you can override key by key.
RealtimeKit’s default language pack can be customized to match your application’s locale requirements. You can override any text string used in the UI Kit components.
— Cloudflare, Meeting Locale
Pattern:
- Import
defaultLanguageanduseLanguagefrom your platform UI package (see Meeting Locale for web module, React, Angular, and React Native imports). - Build
const t = useLanguage({ ...defaultLanguage, leave: "Exit Call" }). - Pass
t={t}toRtkMeetingor toRtkUIProvider/rtk-ui-providerwhen only custom subtrees need translations.
The
useLanguagefunction merges your overrides with the defaults. Any key you do not override keeps its English default value.
— Cloudflare, Meeting Locale
Components like RtkNotifications and RtkLiveStreamViewerCount also take t when you assemble them outside RtkMeeting.
Screen share: UI toggle, APIs, and iOS native setup
Section titled “Screen share: UI toggle, APIs, and iOS native setup”When the stock UI shows the share button
Section titled “When the stock UI shows the share button”On iOS, the in-app share control appears only after native Broadcast Upload Extension setup is complete. Then enable the prop on the meeting shell:
Once native setup is complete, pass
iOSScreenshareEnabled={true}toRtkMeetingto enable the screen share button in the UI.
— Cloudflare, Build using UI Kit
The same instruction appears in the Quickstart. You can also use RtkScreenShareToggle in custom toolbars.
Programmatic start and stop (Local Participant)
Section titled “Programmatic start and stop (Local Participant)”From JavaScript/React, screen sharing goes through the local participant API documented in Local Participant:
await meeting.self.enableScreenShare();await meeting.self.disableScreenShare();const isScreenShareEnabled = meeting.self.screenShareEnabled;Native Android uses meeting.localUser.enableScreenShare(); iOS uses meeting.localUser.enableScreenShare() after extension wiring. On Android API 14+, declare android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION in AndroidManifest.xml as described on that page.
iOS Broadcast Upload Extension checklist
Section titled “iOS Broadcast Upload Extension checklist”The dedicated iOS screen sharing guide requires:
Configure a Broadcast Upload Extension to add screen sharing to your RealtimeKit iOS application.
— Cloudflare, iOS screen sharing
Practical steps from that page include: implement SampleHandler (subclassing RtkSampleHandler or RTKScreenshareHandler), set App Group and screen-sharing extension keys in both app and extension Info.plist files (RTKRTCAppGroupIdentifier / RTCAppGroupIdentifier and RTKRTCScreenSharingExtension / RTCAppScreenSharingExtension depending on integration path), and for React Native, optionally run the Podfile helper add_screenshare_sources from @cloudflare/realtimekit-react-native/ios/scripts/screenshare_sources.rb.
Screen share frame rate trade-offs
Section titled “Screen share frame rate trade-offs”The FAQ notes you can set screen-share media configuration at RealtimeKit init, with bandwidth trade-offs:
Higher screen share frame rates increase bandwidth usage and may impact the video feed quality of other peers in the meeting if there are bandwidth issues with the end user’s device. Set the screen share frame rate to a lower value (for example,
<= 30) in group calls. In most use cases, 5 FPS (default) is sufficient for screen share.
— Cloudflare, FAQ
iOS GridView and video tiles (native UI Kit)
Section titled “iOS GridView and video tiles (native UI Kit)”When you build purely native iOS layouts, GridView lays out participant cells with maxItems, showingCurrently, and getChildView, and supports animated relayout via settingFrames(visibleItemCount:animation:completion:). Screen-share tiles use RtkVideoView with showScreenShare: true. These sit alongside the cross-platform React components rather than replacing them.
Picking extra UI Kit components without reading every API page
Section titled “Picking extra UI Kit components without reading every API page”Dozens of Rtk* API reference pages follow one rule: import the component from @cloudflare/realtimekit-react-ui or @cloudflare/realtimekit-react-native-ui, pass meeting when the doc shows it, and optional size, variant, or config for styling. Feature-specific entry points worth bookmarking:
- Debugging media:
RtkDebugger,RtkDebuggerVideo,RtkDebuggerScreenshare - Side panels:
RtkSidebarwithenabledSections - AI / captions (web React):
RtkAi,RtkAiToggle,RtkAiTranscriptions
Use the stock RtkMeeting first; add atomic components only when you outgrow the default layout.
Common mistakes
Section titled “Common mistakes”- Rendering custom headers before
roomJoinedand seeing empty or inconsistent state (Add Custom Header). - Omitting
RtkDialogManagerin bespoke layouts, which breaks settings and modal flows. - Enabling iOS screen share in UI without Broadcast Upload Extension and
Info.plistkeys (iOS screen sharing). - Raising screen-share FPS in large meetings without accounting for bandwidth (FAQ).
- Calling RealtimeKit hooks outside
RealtimeKitProvider(documented on the custom header page).
How to check this on your site
Section titled “How to check this on your site”-
Confirm the client initialises with a valid participant token and that
RealtimeKitProviderwraps all components that calluseRealtimeKitMeeting, following Build using UI Kit. -
If you customised copy, open the meeting UI and verify overridden keys (for example your
leavelabel) appear instead of defaults, using the patterns in Meeting Locale. -
If you replaced icons, load the meeting and confirm controls pull from your
iconPackUrlJSON per Customise Branding. -
On iOS, after extension setup, join a meeting with
iOSScreenshareEnabled={true}and confirm share starts and stops via Local Participant APIs; useRtkDebuggerScreenshareif share fails silently. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match your integration or the linked Cloudflare docs, email yimasynthetic@gmail.com with the page URL and the exact sentence you think is wrong so it can be corrected.