arctos-SDK For developsarctos-SDK For develops
Home
Okuma
arctos
Contact
  • English
  • 繁體中文
Home
Okuma
arctos
Contact
  • English
  • 繁體中文
  • Guide

    • get-started
  • Spec

    • Peer to Peer Direct
    • Relay based
  • Api

    • Overview
    • Auth
    • Task
    • Business
    • Room
  • Peer to Peer Direct

    • overview
    • installization
    • features

      • initial_setting
      • room
      • camera
      • conference
      • microphone
      • speaker
      • share_screen
      • paint_board
      • recording
      • layout
  • Relay based

    • overview
    • 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

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