Live SDKs JavaScript v1
Live SDKs JavaScript
Live SDKs
Version 1

Start a live event

Copy link

Up to six users can act as a host in a live event and any of the hosts can start the event by calling startEvent() as shown below. When the live event starts, participants can watch and listen to the hosts by receiving the content streaming.

try {
    await liveEvent.startEvent();
} catch (e) {
    // Handle error.

The liveEvent.startStreaming() method will be implicitly called within the Live SDK to establish the connection with the Sendbird server and stream media if hosts hadn't started streaming while checking the settings of a live event. If the hosts had called the liveEvent.startStreaming() and tested media streaming, the established connection will be reused from that point onwards.