To end a live event, call
liveEvent.endEvent(). When you end the live event, the host's media streaming stops, the chat freezes, and all participants are forced out of the live event.
When the host ends the live event,
LiveEventDelegate.didLiveEventEnd(_:) is invoked which can be used to let the participants know that the live event has ended.