AgoraIO / API-Examples

Play with AgoraSDK and have fun! Everything you need to start learning Agora.
296 stars 218 forks source link

Handling when user click STOP SHARE button on Chrome? #338

Closed 03hgryan closed 1 week ago

03hgryan commented 1 year ago

How can I detect this event so that I can unpublish the stream?

plutoless commented 1 year ago

if i remember correctly there's an "ended" event on the screenshare track emitted. you can rely on that one.