List out Participants of Connected Meeting - Javascript
After getting a single meeting connection, all joined participants of that meeting can be fetched using connection.meeting.participants.
Events
-
participant-joined - Whenever a new participant joined that connected meeting, this event will be emitted. For example, Meeting_A is connected with Meeting_B, there are participants
M1P1andM1P2in Meeting_A and participantM2P1in Meeting_B, now a new participantM2P2joined Meeting_B, thenconnection.meeting.on("participant-joined")will be emitted to all participants of Meeting_A. -
participant-left - Whenever any participant left that connected meeting, this event will be emitted. For example, Meeting_A is connected with Meeting_B, there are participants
M1P1andM1P2in Meeting_A and participantsM2P1andM2P2in Meeting_B, now a participantM2P2left Meeting_B, thenconnection.meeting.on("participant-left")will be emitted to all participants of Meeting_A.
Method and Event Code
const connection = meeting.connections.get("<connection-id>");
console.log(connection.meeting.participants);
// Here you will get all joined participants of that connected meeting
connection.meeting.on("participant-joined", (participant) => {
console.log(participant); // Joined participant of that connected meeting
});
connection.meeting.on("participant-left", (participantId) => {
console.log(participantId); // participantId who left that connected meeting
});
Participant you get from connection.meeting.participants, will only contain id and displayName. Any video, audio or share streams will not be provided.
Got a Question? Ask us on discord

