Live SDKs JavaScript v1
Live SDKs JavaScript
Live SDKs
JavaScript
Version 1

Start a live event

Copy link

A host can start a live event by calling startEvent() as shown below. When the live event starts, participants can receive the media stream to watch and listen to the host.

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 the host hasn’t streamed media while checking the settings of a live event. If the host called the liveEvent.startStreaming() method to test media streaming earlier, the connection established from then is used.