RTKParticipant
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 participant4 = meeting.participants.active.toArray().filter((p) => p.name === 'John');- RTKParticipant
- module.exports ⏏
- new module.exports(context, participant, self, roomSocket)
- .id
- .userId
- .name
- .picture
- .customRTKParticipantId
.clientSpecificId- .device
- .videoTrack
- .audioTrack
- .screenShareTracks
- .videoEnabled
- .audioEnabled
- .screenShareEnabled
- .producers
- .manualProducerConfig
- .supportsRemoteControl
- .presetName
- .stageStatus
- .telemetry
- .isPinned
- .setVideoEnabled(videoEnabled, [emitEvent])
- .setAudioEnabled(audioEnabled, [emitEvent])
- .setScreenShareEnabled(screenShareEnabled, [emitEvent])
- .pin()
- .unpin()
- .setIsPinned(isPinned, [emitEvent])
- .disableAudio()
- .kick()
- .disableVideo()
- .registerVideoElement(videoElem)
- .deregisterVideoElement([videoElem])
- .updateVideo(e)
- module.exports ⏏
| Param | Type |
|---|---|
| context | Context |
| participant | IRTKParticipant |
| self | Self |
| roomSocket | RoomSocketHandler |
The peer ID of the participant. The participants are indexed by this ID in the participant map.
Kind: instance property of module.exports
The user ID of the participant.
Kind: instance property of module.exports
The name of the participant.
Kind: instance property of module.exports
The picture of the participant.
Kind: instance property of module.exports
The custom id of the participant set during Add RTKParticipant REST API
Kind: instance property of module.exports
Deprecated
Kind: instance property of module.exports
The device configuration of the participant.
Kind: instance property of module.exports
The participant's video track.
Kind: instance property of module.exports
The participant's audio track.
Kind: instance property of module.exports
The participant's screenshare video and audio track.
Kind: instance property of module.exports
This is true if the participant's video is enabled.
Kind: instance property of module.exports
This is true if the participant's audio is enabled.
Kind: instance property of module.exports
This is true if the participant is screensharing.
Kind: instance property of module.exports
producers created by participant
Kind: instance property of module.exports
producer config passed during manual subscription
Kind: instance property of module.exports
This is true if the participant supports remote control.
Kind: instance property of module.exports
The preset of the participant.
Kind: instance property of module.exports
Denotes the participants's current stage status.
Kind: instance property of module.exports
Kind: instance property of module.exports
Returns true if the participant is pinned.
Kind: instance property of module.exports
Kind: instance method of module.exports
| Param | Type | Default |
|---|---|---|
| videoEnabled | boolean | |
| [emitEvent] | boolean | true |
Kind: instance method of module.exports
| Param | Type | Default |
|---|---|---|
| audioEnabled | boolean | |
| [emitEvent] | boolean | true |
Kind: instance method of module.exports
| Param | Type | Default |
|---|---|---|
| screenShareEnabled | boolean | |
| [emitEvent] | boolean | true |
Returns participant.id if user has permission
to pin participants.
Kind: instance method of module.exports
Returns participant.id if user has permission
to unpin participants.
Kind: instance method of module.exports
Kind: instance method of module.exports
| Param | Type | Default |
|---|---|---|
| isPinned | boolean | |
| [emitEvent] | boolean | true |
Disables audio for this participant. Requires the permission to disable participant audio.
Kind: instance method of module.exports
Kicks this participant from the meeting. Requires the permission to kick a participant.
Kind: instance method of module.exports
Disables video for this participant. Requires the permission to disable video for a participant.
Kind: instance method of module.exports
Kind: instance method of module.exports
| Param | Type |
|---|---|
| videoElem | HTMLVideoElement |
Kind: instance method of module.exports
| Param | Type |
|---|---|
| [videoElem] | HTMLVideoElement |
Internal method, do not use
Kind: instance method of module.exports
| Param | Type |
|---|---|
| e | HTMLVideoElement |