Event
onLeaveLiveStreaming
This callback will be triggered when user click exit button.
- function prototype:
onLeaveLiveStreaming(duration)
- example:
<ZegoUIKitPrebuiltLiveStreaming appID={Your_APPID} appSign={Your_APPSign} userID={Your_UserID} userName={Your_UserName} liveID={liveID} config={{ onLeaveLiveStreaming: (duration) => { //... }, }} />
onLiveStreamingEnded
This callback will be triggered to audience in livestreaming room when the live is end by host.
- function prototype:
onLiveStreamingEnded(duration)
- example:
<ZegoUIKitPrebuiltLiveStreaming appID={Your_APPID} appSign={Your_APPSign} userID={Your_UserID} userName={Your_UserName} liveID={liveID} config={{ onLiveStreamingEnded: () => { //... }, }} />
onStartLiveButtonPressed
This callback will be triggered when host click start live button.
- function prototype:
onStartLiveButtonPressed()
- example:
<ZegoUIKitPrebuiltLiveStreaming appID={Your_APPID} appSign={Your_APPSign} userID={Your_UserID} userName={Your_UserName} liveID={liveID} config={{ onStartLiveButtonPressed: () => { //... }, }} />