Skip to content

RTKParticipant

Last updated View as MarkdownAgent setup

This module represents a single participant in the meeting. The participant object can be accessed from one of the participant lists present in the meeting.participants object. For example,

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

The peer ID of the participant. The participants are indexed by this ID in the participant map.

Kind: instance property of RTKParticipant

participant.userId

The user ID of the participant.

Kind: instance property of RTKParticipant

participant.name

The name of the participant.

Kind: instance property of RTKParticipant

participant.picture

The picture of the participant.

Kind: instance property of RTKParticipant

participant.customParticipantId

The custom id of the participant set during https://developers.cloudflare.com/api/resources/realtime_kit/subresources/meetings/methods/add_participant REST API

Kind: instance property of RTKParticipant

participant.device

The device configuration of the participant.

Kind: instance property of RTKParticipant

participant.videoTrack

The participant's video track.

Kind: instance property of RTKParticipant

participant.audioTrack

The participant's audio track.

Kind: instance property of RTKParticipant

participant.screenShareTracks

The participant's screenshare video and audio track.

Kind: instance property of RTKParticipant

participant.videoEnabled

This is true if the participant's video is enabled.

Kind: instance property of RTKParticipant

participant.audioEnabled

This is true if the participant's audio is enabled.

Kind: instance property of RTKParticipant

participant.screenShareEnabled

This is true if the participant is screensharing.

Kind: instance property of RTKParticipant

participant.producers

producers created by participant

Kind: instance property of RTKParticipant

participant.manualProducerConfig

producer config passed during manual subscription

Kind: instance property of RTKParticipant

participant.supportsRemoteControl

This is true if the participant supports remote control.

Kind: instance property of RTKParticipant

participant.presetName

The preset of the participant.

Kind: instance property of RTKParticipant

participant.stageStatus

Denotes the participants's current stage status.

Kind: instance property of RTKParticipant

participant.isPinned

Returns true if the participant is pinned.

Kind: instance property of RTKParticipant

participant.pin()

Returns participant.id if user has permission to pin participants.

Kind: instance method of RTKParticipant

participant.unpin()

Returns participant.id if user has permission to unpin participants.

Kind: instance method of RTKParticipant

participant.disableAudio()

Disables audio for this participant. Requires the permission to disable participant audio.

Kind: instance method of RTKParticipant

participant.kick()

Kicks this participant from the meeting. Requires the permission to kick a participant.

Kind: instance method of RTKParticipant

participant.disableVideo()

Disables video for this participant. Requires the permission to disable video for a participant.

Kind: instance method of RTKParticipant

participant.registerVideoElement(videoElem)

Kind: instance method of RTKParticipant

Param Type
videoElem HTMLVideoElement

participant.deregisterVideoElement([videoElem])

Kind: instance method of RTKParticipant

Param Type
[videoElem] HTMLVideoElement

Was this helpful?