Home:ALL Converter>Agora Web SDK NG - stop screen share event exists?

Agora Web SDK NG - stop screen share event exists?

Ask Time:2021-05-14T14:49:28         Author:user2095405

Json Formatter

currently I am using Agora Web SDK NG for video call implementation on web. I have one theoretical question. I started work on screen share. I will use example. I have video call members A and B. User A starts a screen share. Sharing is working fine, but problem occurs when user A wants to stop the screen share. User A click on standard Agora Stop share button which is shown from the screen share beginning..

After click, sharing is stopped but this change is not reflected to user B. The current video stream from user A stucked, because the stream was not unpublished. And this is my main problem. On user A side, I am not able to detect the button click on Agora standard stop share button. This button is outside of browser context so I am not able to just make selector and create button click event. If I would be able to detect this button click, I am able manually unpublish the stream. Do you know how to do it? I would expect some event handler something like this client.on("user-stop-share", handlerFunction). I am using Google Chrome browser. Thanks.

Author:user2095405,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67530144/agora-web-sdk-ng-stop-screen-share-event-exists
yy