在 rtk-participants 中使用的参与者条目组件,用于显示以下数据:名称、照片和媒体设备状态。您还可以对该参与者执行特权操作。
| 属性 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
config |
UIConfig1 |
❌ | createDefaultConfig() |
配置对象 |
iconPack |
IconPack |
❌ | defaultIconPack |
图标包 |
meeting |
Meeting |
✅ | - | 会议对象 |
participant |
Peer |
✅ | - | 参与者对象 |
states |
States1 |
✅ | - | 状态 |
t |
RtkI18n |
❌ | useLanguage() |
语言 |
view |
ParticipantViewMode |
✅ | - | 显示参与者摘要 |
import { RtkParticipant } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkParticipant />;
}import { RtkParticipant } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkParticipant
meeting={meeting}
participant={participant}
view={participantviewmode}
/>
);
}