Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkParticipant

最終更新 Markdown で表示Agent セットアップ

rtk-participants 内で使う参加者エントリコンポーネントです。名前、画像、メディアデバイスの状態などを表示します。権限がある場合は、参加者に特権アクションも実行できます。

プロパティ

プロパティ 型 必須 デフォルト 説明
config UIConfig1 ❌ createDefaultConfig() 設定オブジェクト
iconPack IconPack ❌ defaultIconPack アイコンパック
meeting Meeting ✅ - Meeting オブジェクト
participant Peer ✅ - Participant オブジェクト
states States1 ✅ - States
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}
    />
  );
}

役に立ちましたか?