Options
All
  • Public
  • Public/Protected
  • All
Menu

Share screen option interface.

Hierarchy

  • ScreenShareOption

Index

Properties

broadcastToSubsession?: boolean

Whether the sharing is broadcast to subsessions. Only host or co-host have this privilege.

captureHeight?: number

The capture height of share video. Only enabled when the value of secondaryCameraId is not undefined.

captureWidth?: number

The capture with of the share video. Only enabled when the value of secondaryCameraId is not undefined.

controls?: { monitorTypeSurfaces?: "include" | "exclude"; preferCurrentTab?: boolean; selfBrowserSurface?: "include" | "exclude"; surfaceSwitching?: "include" | "exclude"; systemAudio?: "include" | "exclude" }

Privacy-preserving screen sharing controls See for details: https://developer.chrome.com/docs/web-platform/screen-sharing-controls

Type declaration

displaySurface?: string

Specifies the types of display surface that the user may select. See for details: https://developer.chrome.com/docs/web-platform/screen-sharing-controls/#displaySurface

hideShareAudioOption?: boolean

Option to show (default, false) or hide (true) the "Share Audio" checkbox when sharing a Chrome tab.

optimizedForSharedVideo?: boolean

Optimized for video share. If sharing a video file that is stored locally on the computer, we recommend using the video share feature, which will provide better quality due to decreased CPU usage.

requestReadReceipt?: boolean

Whether the screen sharing user can receive the 'share-can-see-screen' event.

secondaryCameraId?: string

Secondary camera ID. Share a secondary camera connected to your computer. For example, a document camera or the integrated camera on your laptop.

sourceId?: string

Specify the sourceId of the selected screen. This is used for the electron or nw.js application. See for details: electron https://www.electronjs.org/docs/latest/api/desktop-capturer nw.js https://docs.nwjs.io/en/latest/References/Screen/#screenchoosedesktopmedia-sources-callback