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
Why mobile browsers do not support screen sharing due to technical and security limitations. Specifically:
Lack of API support: The WebRTC getDisplayMedia() API, which is used for screen sharing, is not fully supported on mobile browsers like Safari on iOS or Chrome on Android.
Security and permissions: Mobile platforms do not offer the same permission model as desktops, making it more complex to securely share the screen.
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.
