Skip to main content
Version: 0.0.x

Meeting Events - Javascript

VideoSDK provides several types of events that can be listened to in order to determine the current state of the meeting.

Here are the events which specifically relate to the meeting:

meeting-joined

  • This event is triggered when the meeting is successfully joined.
  • It can be subscribed to using the meeting object.

meeting-left

  • This event is triggered when the meeting is left.
  • It can be subscribed to using the meeting object.

speaker-changed

  • This event is triggered when there is a change in the active speaker during the meeting.
  • It can be subscribed to using the meeting object.

presenter-changed

  • This event is triggered when there is a change in the presenter during the meeting.
  • It can be subscribed to using the meeting object.

Example

Here is an example demonstrating the usage of the event mentioned on this page.

let meeting;

// Initialize Meeting
meeting = VideoSDK.initMeeting({
// ...
});

meeting.on("meeting-joined", () => {
//
});

meeting.on("meeting-left", () => {
//
});

meeting.on("speaker-changed", (activeSpeakerId) => {
//
});

meeting.on("presenter-changed", (activePresenterId) => {
//
});

API Reference

The API references for all the methods and events utilized in this guide are provided below.

Got a Question? Ask us on discord