Skip to main content
Version: 0.0.x

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 M1P1 and M1P2 in Meeting_A and participant M2P1 in Meeting_B, now a new participant M2P2 joined Meeting_B, then connection.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 M1P1 and M1P2 in Meeting_A and participants M2P1 and M2P2 in Meeting_B, now a participant M2P2 left Meeting_B, then connection.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
});
info

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