Skip to main content
Version: 0.0.x

RTMP Events - Javascript

VideoSDK provides the livestream-state-changed event, which informs you about the current state of the livestream for the meeting.


  • This event is triggered when the livestream status of the meeting changes.
  • It can be subscribed to using the meeting object.


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("livestream-state-changed", (data) => {
const { status } = data;

if (status === Constants.livestreamEvents.LIVESTREAM_STARTING) {
console.log("Meeting livestream is starting");
} else if (status === Constants.livestreamEvents.LIVESTREAM_STARTED) {
console.log("Meeting livestream is started");
} else if (status === Constants.livestreamEvents.LIVESTREAM_STOPPING) {
console.log("Meeting livestream is stopping");
} else if (status === Constants.livestreamEvents.LIVESTREAM_STOPPED) {
console.log("Meeting livestream 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