Live JavaScript v1
Live JavaScript
Live
JavaScript
Home
/
Live
/
JavaScript
/
SDK

Start a live event

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.