logo
On this page

Event

onLeaveLiveStreaming

This callback will be triggered when user click exit button.

  • function prototype:
Untitled
onLeaveLiveStreaming(duration)
1
Copied!
  • example:
Untitled
<ZegoUIKitPrebuiltLiveStreaming
   appID={Your_APPID}
   appSign={Your_APPSign}
   userID={Your_UserID}
   userName={Your_UserName}
   liveID={liveID}
   config={{
       onLeaveLiveStreaming: (duration) => {
           //...
       },
   }}
/>
1
Copied!

onLiveStreamingEnded

This callback will be triggered to audience in livestreaming room when the live is end by host.

  • function prototype:
Untitled
onLiveStreamingEnded(duration)
1
Copied!
  • example:
Untitled
<ZegoUIKitPrebuiltLiveStreaming
   appID={Your_APPID}
   appSign={Your_APPSign}
   userID={Your_UserID}
   userName={Your_UserName}
   liveID={liveID}
   config={{
       onLiveStreamingEnded: () => {
           //...
       },
   }}
/>
1
Copied!

onStartLiveButtonPressed

This callback will be triggered when host click start live button.

  • function prototype:
Untitled
onStartLiveButtonPressed()
1
Copied!
  • example:
Untitled
<ZegoUIKitPrebuiltLiveStreaming
   appID={Your_APPID}
   appSign={Your_APPSign}
   userID={Your_UserID}
   userName={Your_UserName}
   liveID={liveID}
   config={{
       onStartLiveButtonPressed: () => {
           //...
       },
   }}
/>
1
Copied!