用于管理音频设备和音频偏好设置的组件。
触发带有静音通知音数据的 rtkStateUpdate 事件:
{
prefs: {
muteNotificationSounds: boolean
}
}| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
iconPack |
IconPack |
❌ | defaultIconPack |
图标包 |
meeting |
Meeting |
✅ | - | Meeting 对象 |
size |
Size |
✅ | - | 尺寸 |
t |
RtkI18n |
❌ | useLanguage() |
语言 |
variant |
'full' | 'inline' |
✅ | - | 变体 |
import { RtkMicrophoneSelector } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkMicrophoneSelector />;
}import { RtkMicrophoneSelector } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkMicrophoneSelector
meeting={meeting}
size="md"
variant={'full' | 'inline'}
/>
);
}