Skip to main content
caution

This page has been deprecated.

We've released a new version of pages with some improvements and smoother experience.

Here is the link of each SDK for this page.

Go Live On Social Media

This feature allows participant to broadcast meeting on various social media platforms such as Facebook or Youtube. This guide will provide an overview of how participant can start and stop broadcasting meeting.

  1. Start LiveStream - By using startLivestream() function, a participant can start broadcasting meeting on various platforms by provding url and stream keys as an argument.
  2. Stop LiveStream - By using stopLivestream() function, a participant can stop broadcasting on all platforms.

Start And Stop Live Stream

const onPress = () => {
// Start Live Stream
meeting?.startLivestream([
{
url: "rtmp://a.rtmp.youtube.com/live2",
streamKey: "key",
},
]);

// Stop Live Stream
meeting?.stopLivestream();
};

Events

  1. livestream-started - Whenever broadcasting of meeting started, livestream-started event will trigger.

  2. livestream-stopped - Whenever broadcasting of meeting stopped, livestream-stopped event will trigger.

meeting.on("livestream-started", () => {
console.log("LiveStream Started");
});

meeting.on("livestream-stopped", () => {
console.log("LiveStream Stopped");
});

Got a Question? Ask us on discord