arctos Web-SDK For developsarctos Web-SDK For develops
  • English
  • 繁體中文
  • English
  • 繁體中文
  • Guide

    • get-started
  • overview
  • Spec
  • installization
  • features

    • initial_setting
    • camera
    • microphone
    • speaker
    • share_screen
      • How to screen share
        • Chrome, Safari, Edge
      • How to know when the user stops sharing the screen
    • paint_board
    • share_message
    • switch_template
    • video_filters

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:

  1. 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.

  2. 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.

Sample Code


Prev
speaker
Next
paint_board