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
stringdisplayName
stringstreams
Map<string, Stream>
Properties
Events
__events
stream-enabled
eventstream-disabled
event
Events
Methods
__methods
setQuality(quality: low | med | high)
undefinedenableMic()
undefineddisableMic()
undefinedenableWebcam()
undefineddisableWebcam()
undefinedpin(SHARE_AND_CAM | CAM | SHARE | null)
undefinedunpin(SHARE_AND_CAM | CAM | SHARE | null)
undefinedon(eventType: string)
undefinedoff(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

