Meeting Audio UI: Device Selection, Mute Controls, and Playback
How RealtimeKit UI Kit audio components handle microphones, speakers, remote playback, pre-join setup, and preference events.
This page summarises Cloudflare RealtimeKit Humans UI Kit reference material for audio in real-time meetings: playing participant and screenshare sound, choosing input/output devices, pre-join checks, room-wide mute, and preference updates via rtkStateUpdate. The same ideas appear as Web Components (rtk-* tags), React, Angular, React Native, Android, and iOS wrappers; framework-specific pages repeat core behaviour with platform packaging.
Participant audio playback: hear everyone in the call
Section titled “Participant audio playback: hear everyone in the call”What rtk-participants-audio does
Section titled “What rtk-participants-audio does”Remote meeting audio is handled by a dedicated playback component that mixes sound from people and shared screens.
A component which plays all the audio from participants and screenshares.
— Cloudflare, rtk-participants-audio (core)
On the web, drop in the custom element with no extra markup in the basic pattern documented for core and Angular. React exposes the same role as RtkParticipantsAudio. Use this when you need one place that subscribes to and renders all inbound audio tracks, instead of wiring each participant yourself.
rtk-audio-tile
Section titled “rtk-audio-tile”For UI that represents a single audio-related tile (alongside video layouts), the kit provides rtk-audio-tile. Basic usage is the empty custom element:
<rtk-audio-tile></rtk-audio-tile>Pair participants audio (global playback) with tiles when your layout shows per-participant or per-track presentation; the cluster docs only state element names, not layout rules—wire them according to your meeting object and design.
Audio device selection: microphone, speaker, and bundled selectors
Section titled “Audio device selection: microphone, speaker, and bundled selectors”Microphone and speaker pickers
Section titled “Microphone and speaker pickers”Users choose capture and output hardware through selector components. Microphone selection is documented for core rtk-microphone-selector, Angular, and React RtkMicrophoneSelector. Speaker selection mirrors that on core, Angular, and React RtkSpeakerSelector.
A component which lets to manage your audio devices and audio preferences. Emits rtkStateUpdate event with data for muting notification sounds:
{ prefs: { muteNotificationSounds: boolean }}— Cloudflare, rtk-microphone-selector (core)
The same description and rtkStateUpdate payload appear on rtk-speaker-selector (core), rtk-camera-selector (core) (despite the camera name, the quoted text covers audio devices and audio preferences), rtk-settings-audio, and the Angular/React selector pages linked above.
Common conclusion: any of these selectors can drive device lists and notification-sound muting; listen for rtkStateUpdate and read prefs.muteNotificationSounds if your app must persist or sync that preference outside the component.
On Android, RtkAudioDeviceSelector is described more narrowly:
An audio device selector component which can be used to select audio devices.
— Cloudflare, RtkAudioDeviceSelector
Dedicated audio settings panel
Section titled “Dedicated audio settings panel”For a focused audio-only settings surface, use rtk-settings-audio (core) or RtkSettingsAudio (React). React Native’s RtkSettingsAudio adds UI called out in the reference:
Audio settings panel with device selection dropdown, audio visualizer preview, and notification sound toggle.
— Cloudflare, RtkSettingsAudio (React Native)
Core web usage can set size and bind the meeting object:
<rtk-settings-audio size="md"></rtk-settings-audio>
<script> const el = document.querySelector("rtk-settings-audio");
el.meeting = meeting;</script>— pattern from rtk-settings-audio (core), With Properties
React import example from the same kit family:
import { RtkSettingsAudio } from '@cloudflare/realtimekit-react-ui';
function MyComponent() { return <RtkSettingsAudio />;}— Cloudflare, RtkSettingsAudio (React)
Assign meeting (or the equivalent prop in your framework) so device enumeration and previews stay tied to the active RealtimeKit session.
Full settings and video mirror preferences (related controls)
Section titled “Full settings and video mirror preferences (related controls)”rtk-settings: audio, video, and connection quality
Section titled “rtk-settings: audio, video, and connection quality”When users need one settings surface for devices and network feedback, use rtk-settings (core), Angular, or RtkSettings (React). All share:
A settings component to see and change your audio/video devices as well as see your connection quality.
— Cloudflare, rtk-settings (core)
React Native’s RtkSettings states the same scope as a dialog: audio device selection, video device selection, and network connection status.
Android splits layout by orientation: RtkSettingsBottomsheet (portrait) and RtkSettingsFragment (landscape), each with audio and video selectors plus a self-preview tile.
Video settings event (when audio page touches video prefs)
Section titled “Video settings event (when audio page touches video prefs)”rtk-settings-video manages cameras and emits a different preference shape:
A component which lets to manage your camera devices and your video preferences. Emits rtkStateUpdate event with data for toggling mirroring of self video:
{ prefs: { mirrorVideo: boolean }}— Cloudflare, rtk-settings-video (core)
Use settings audio and settings video separately when you want modular panels; use rtk-settings when connection quality and both media types belong in one flow.
Pre-join setup: check mic and name before joining
Section titled “Pre-join setup: check mic and name before joining”Web and cross-platform setup screens
Section titled “Web and cross-platform setup screens”Before the user enters the room, the kit provides setup UIs to edit display name and media settings. rtk-setup-screen (core) and Angular state:
A screen shown before joining the meeting, where you can edit your display name, and media settings.
— Cloudflare, rtk-setup-screen (core)
React RtkSetupScreen uses the same description. React Native RtkSetupScreen lists concrete controls: video preview, mic/camera toggles, display name input, camera switch, and join button. RtkSetupFragment (Android) covers display name and media settings; RtkSetupViewController (iOS) adds video preview, audio and video toggles, and name entry.
Place setup before rtk-participants-audio and in-call selectors so permissions and device choices are settled early.
Mute all: button and confirmation
Section titled “Mute all: button and confirmation”Room-wide mute UI
Section titled “Room-wide mute UI”For moderator-style mute everyone flows, the kit ships two core elements:
- rtk-mute-all-button — basic usage:
<rtk-mute-all-button></rtk-mute-all-button> - rtk-mute-all-confirmation — basic usage:
<rtk-mute-all-confirmation></rtk-mute-all-confirmation>
The cluster references only element names, not server-side mute policy. Treat the button and confirmation as UI affordances; enforce who may mute whom through your RealtimeKit meeting permissions and backend rules, not by these tags alone.
Component map: which audio UI to use when
Section titled “Component map: which audio UI to use when”| Goal | Prefer | Reference |
|---|---|---|
| Play all remote audio (participants + screenshare) | Participants audio component | core, React |
| Pick microphone only | Microphone selector | core |
| Pick speaker / output | Speaker selector | core |
| Audio devices + mute notification sounds | Settings audio or selectors (listen for rtkStateUpdate) |
core rtk-settings-audio |
| Audio + video + connection quality | Full settings | core rtk-settings |
| Pre-join name and media | Setup screen | core rtk-setup-screen |
| Mute all with confirmation | Mute all button + confirmation | rtk-mute-all-button, rtk-mute-all-confirmation |
| Android audio device list | RtkAudioDeviceSelector |
Android |
Common mistakes
Section titled “Common mistakes”- Mounting rtk-participants-audio without an active meeting context, then expecting playback with no subscribed tracks.
- Using rtk-camera-selector for video-only UX while ignoring that the documented description includes audio device and preference management and
muteNotificationSounds. - Omitting
el.meeting = meeting(or framework equivalent) on rtk-settings-audio, leaving device lists empty. - Showing RtkSettingsFragment in portrait or RtkSettingsBottomsheet in landscape against the documented orientation intent.
How to check this on your site
Section titled “How to check this on your site”-
In a staging build, open the pre-join flow and confirm rtk-setup-screen (or your platform’s setup component) lets you edit display name and media settings before join.
-
After joining, verify rtk-participants-audio is mounted and you hear both participant and screenshare audio when those tracks are published.
-
Open rtk-settings-audio or rtk-microphone-selector / rtk-speaker-selector, change devices, and confirm capture and playback follow the selection.
-
Toggle notification sound muting and confirm your handler receives
rtkStateUpdatewithprefs.muteNotificationSoundsas documented on rtk-microphone-selector (core). -
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 is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will fix or clarify it.