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

End a live event

Copy link

To end a live event, call liveEvent.endEvent(). When the live event ends, the media streaming from all hosts stops, the chat freezes, and all participants are forced out of the live event.

When the live event is ended, liveEventEnded is invoked, which can be used to let the participants know that the live event has ended.

Note: The actions that hosts take are independent of the states of the live event. For example, a host's entering or leaving the event won't change the state of it. A host can exit the live event without ending the live event because endEvent() must be called to completely end the live event. To understand how it works, refer to the leave the live event temporarily page.