Skip to main content
Version: 0.0.x

Recording Events - Javascript

VideoSDK provides the recording-state-changed event, which notifies you of the current state of recording for the meeting.

recording-state-changed

  • This event is triggered when the recording status of the meeting changes.
  • 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({
// ...
});

const Constants = VideoSDK.Constants;

meeting.on("recording-state-changed", (data) => {
const { status } = data;

if (status === Constants.recordingEvents.RECORDING_STARTING) {
console.log("Meeting recording is starting");
} else if (status === Constants.recordingEvents.RECORDING_STARTED) {
console.log("Meeting recording is started");
} else if (status === Constants.recordingEvents.RECORDING_STOPPING) {
console.log("Meeting recording is stopping");
} else if (status === Constants.recordingEvents.RECORDING_STOPPED) {
console.log("Meeting recording is stopped");
} else {
//
}
});

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