Skip to content

Commit 35144ca

Browse files
authored
Update manage-video-web.md
1 parent 695afbd commit 35144ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/communication-services/how-tos/calling-sdk/includes/manage-video/manage-video-web.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ const view = await videoStreamRenderer.createView();
209209
htmlElement.appendChild(view.target);
210210

211211
// To stop viewing local screen share preview, dispose the screen share preview first, then stop screen sharing.
212+
await call.stopScreenSharing();
212213
view.dispose();
213214
htmlElement.removeChild(view.target);
214-
await call.stopScreenSharing();
215215

216216
// Screen sharing can also be stoped by clicking on the native browser's "Stop sharing" button.
217217
// The isScreenSharingOnChanged event will be triggered where you can check the value of call.isScreenSharingOn.

0 commit comments

Comments
 (0)