Participant Class
Participant class includes all the properties, methods and events related to all the participants joined in a particular meeting.
Participant Class
Get local and remote participants
You can get the local streams and participant meta from meeting.localParticipant
. And a Map of joined participants is always available via meeting.participants
.
Javascript
const localParticipant = meeting.localParticipant;
const participants = meeting.participants;
Properties
__properties
id
string
displayName
string
streams
Map<string, Stream>
Properties
Events
__events
stream-enabled
event
stream-disabled
event
Events
Methods
__methods
setQuality(quality: low | med | high)
undefined
enableMic()
undefined
disableMic()
undefined
enableWebcam()
undefined
disableWebcam()
undefined
pin(SHARE_AND_CAM | CAM | SHARE | null)
undefined
unpin(SHARE_AND_CAM | CAM | SHARE | null)
undefined
on(eventType: string)
undefined
off(eventType: string)
undefined
Methods
Example
Javascript
meeting.on("participant-joined", (participant) => {
setParticipants(new Map(meeting.participants));
});
meeting.on("participant-left", (participant) => {
setParticipants(new Map(meeting.participants));
});
Got a Question? Ask us on discord