The first step is to configure the live event by providing a
LiveEventConfiguration object. You can provide some basic information related to the event such as the title and the cover image that would show on the thumbnail. If not specified, the live event ID will show as the title and the thumbnail will show as black.
A live event requires a host for which you can provide candidates in the
userIdsForHost property. Up to ten users can be set as candidates and only one of them can act as a host for the live event. When an incumbent host exits, any other users specified in
userIdsForHost can enter the live event and act as a host.
Once you have configured the
LiveEvent object, you can create a live event by calling the
SendbirdLive.createLiveEvent method. If the creation was successful, the status of the live event will be
created and an open channel will be available in which the host can chat.
In case the open channel isn’t available, call
fetchOpenChannel() to fetch the open channel.