You can participate in a live event as a participant. When you enter a live event as a participant, you can receive the host's media stream and chat with other participants and the host.
LiveEventParticipantViewController instance includes a view displaying the host's media stream, UI components for providing the live event information, and a chat where participants can send messages during the live event.
The following table lists the features included in
LiveEventParticipantViewController class includes all the features of the
LiveEventViewController class and can access all of its methods and properties.
Enter a live event
Allows a user to enter a live event.
Use the chat
Allows a user to send messages to the chat.
Show a list of participants
Displays a list of participants watching the live event.
LiveEventParticipantViewController, a user must enter the live event by calling
A user can click a live event on
LiveEventListViewController to enter the live event and automatically display
Alternatively, you can use the following code to manually display
The following table lists methods you can use to customize the view controller.
Determines whether to display the duration of a live event in the view. If set to
Determines whether to display the live event status in the view. If set to
Determines whether to display the number of participants in real time. If set to
The period of time to display the message that the live event has ended.
Called when a user clicks the exit button. By default, a host is given a choice to end or leave without ending the live event while a participant is prompted to leave the live event.
The following table lists the properties of
SBUStringSet you can customize to modify the live event's participant view.
Try entering the live event again.
Live event has ended.
Host is muted.
Host is temporarily unavailable.
Live event will begin soon.
The following table lists icons in
SBUIconSet that you can customize to modify the live event's participant view.
Switches between front and rear cameras.
Indicates that audio device is turned on.
Indicates that audio device is turned off.
Indicates that a video device is turned on.
Indicates that a video device is turned off.