Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

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}
    />
  );
}

役に立ちましたか?