File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
articles/communication-services/how-tos/calling-sdk/includes/manage-video Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -208,14 +208,15 @@ const videoStreamRenderer = new VideoStreamRenderer(localScreenSharingStream);
208
208
const view = await videoStreamRenderer .createView ();
209
209
htmlElement .appendChild (view .target );
210
210
211
- // To stop viewing local screen share preview, dispose the screen share preview first, then stop screen sharing .
211
+ // To stop viewing local screen share preview.
212
212
await call .stopScreenSharing ();
213
213
view .dispose ();
214
214
htmlElement .removeChild (view .target );
215
215
216
216
// Screen sharing can also be stoped by clicking on the native browser's "Stop sharing" button.
217
217
// The isScreenSharingOnChanged event will be triggered where you can check the value of call.isScreenSharingOn.
218
- // If the value is false, then that means screen sharing is turned off and so we can go ahead and dispose the screen share preview.
218
+ // If the value is false, then that means screen sharing is turned off and so we can go ahead and dispose the screen share preview.
219
+ // This event is also triggered for the case when stopping screen sharing via Call.stopScreenSharing() API.
219
220
call .on (' isScreenSharingOnChanged' , () => {
220
221
if (! call .isScreenSharingOn ) {
221
222
view .dispose ();
You can’t perform that action at this time.
0 commit comments