Share screen
How to screen share
The following desktop platforms support screen sharing (mobile platforms do not currently support it):
- Chrome
- Safari >= 13.0
- Microsoft Edge >= 80.0
Chrome, Safari, Edge
To share the screen, you can use the toggleScreenShare
method of the MeetingRoom
object. This method will open a dialog to select the screen or window to share. You can do it like this:
toggleScreenShare = function () {
arctosSdkInstance.$meetingRoom.toggleScreenShare();
};
How to know when the user stops sharing the screen
You can listen to the screenShareStopped
event to know when the user stops sharing the screen. You can do it like this:
arctosSdkInstance.$meetingRoom.onScreenShareStarted.subscribe((event) => {
console.log('onScreenShareStarted', event);
});
arctosSdkInstance.$meetingRoom.onScreenShareStopped.subscribe((event) => {
console.log('onScreenShareStopped', event);
});
The following url is a sample code for share screen.