Skip to content

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

RTKParticipant

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

このモジュールは、ミーティング内の 1 人の参加者を表します。 参加者オブジェクトは、meeting.participants オブジェクト内のいずれかの参加者リストから取得できます。例:

const participant1 = meeting.participants.active.get(participantId);
const participant2 = meeting.participants.joined.get(participantId);
const participant3 = meeting.participants.active.toArray()[0];
const participantsNamedJohn = meeting.participants.active.toArray()
  .filter((p) => p.name === 'John');

participant.id

参加者の peer ID です。 参加者マップでは、この ID でインデックスされます。

Kind: RTKParticipant のインスタンスプロパティ

participant.userId

参加者の user ID です。

Kind: RTKParticipant のインスタンスプロパティ

participant.name

参加者の名前です。

Kind: RTKParticipant のインスタンスプロパティ

participant.picture

参加者の画像です。

Kind: RTKParticipant のインスタンスプロパティ

participant.customParticipantId

https://developers.cloudflare.com/api/resources/realtime_kit/subresources/meetings/methods/add_participant REST API で設定した、参加者のカスタム ID です。

Kind: RTKParticipant のインスタンスプロパティ

participant.device

参加者のデバイス設定です。

Kind: RTKParticipant のインスタンスプロパティ

participant.videoTrack

参加者のビデオトラックです。

Kind: RTKParticipant のインスタンスプロパティ

participant.audioTrack

参加者のオーディオトラックです。

Kind: RTKParticipant のインスタンスプロパティ

participant.screenShareTracks

参加者の画面共有用ビデオトラックとオーディオトラックです。

Kind: RTKParticipant のインスタンスプロパティ

participant.videoEnabled

参加者の動画が有効な場合は true です。

Kind: RTKParticipant のインスタンスプロパティ

participant.audioEnabled

参加者の音声が有効な場合は true です。

Kind: RTKParticipant のインスタンスプロパティ

participant.screenShareEnabled

参加者が画面共有中の場合は true です。

Kind: RTKParticipant のインスタンスプロパティ

participant.producers

参加者が作成した producer です。

Kind: RTKParticipant のインスタンスプロパティ

participant.manualProducerConfig

手動サブスクリプション時に渡す producer の設定です。

Kind: RTKParticipant のインスタンスプロパティ

participant.supportsRemoteControl

参加者がリモートコントロールに対応している場合は true です。

Kind: RTKParticipant のインスタンスプロパティ

participant.presetName

参加者の preset です。

Kind: RTKParticipant のインスタンスプロパティ

participant.stageStatus

参加者の現在のステージ状態を示します。

Kind: RTKParticipant のインスタンスプロパティ

participant.isPinned

参加者がピン留めされている場合は true を返します。

Kind: RTKParticipant のインスタンスプロパティ

participant.pin()

参加者をピン留めする権限がある場合、participant.id を返します。

Kind: RTKParticipant のインスタンスメソッド

participant.unpin()

参加者のピン留めを解除する権限がある場合、participant.id を返します。

Kind: RTKParticipant のインスタンスメソッド

participant.disableAudio()

この参加者の音声を無効にします。 参加者の音声を無効にする権限が必要です。

Kind: RTKParticipant のインスタンスメソッド

participant.kick()

この参加者をミーティングから退出させます。 参加者を退出させる権限が必要です。

Kind: RTKParticipant のインスタンスメソッド

participant.disableVideo()

この参加者の動画を無効にします。 参加者の動画を無効にする権限が必要です。

Kind: RTKParticipant のインスタンスメソッド

participant.registerVideoElement(videoElem)

Kind: RTKParticipant のインスタンスメソッド

パラメーター
videoElem HTMLVideoElement

participant.deregisterVideoElement([videoElem])

Kind: RTKParticipant のインスタンスメソッド

パラメーター
[videoElem] HTMLVideoElement

役に立ちましたか?