ScreenShareCaptureOptions
Defined in: client-sdk-js/src/track/options.ts:126
Options for capturing a screen share.
Properties
Section titled “Properties”audio?
Section titled “audio?”audio?: boolean | AudioCaptureOptions;Defined in: client-sdk-js/src/track/options.ts:133
true to capture audio shared alongside the screen. Browser support for
audio capturing in screen share is limited.
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility
contentHint?
Section titled “contentHint?”contentHint?: "detail" | "text" | "motion";Defined in: client-sdk-js/src/track/options.ts:175
Specify the type of content.
https://www.w3.org/TR/mst-content-hint/#video-content-hints
controller?
Section titled “controller?”controller?: unknown;Defined in: client-sdk-js/src/track/options.ts:197
A CaptureController instance for further manipulation of the capture session if included.
frameRate?
Section titled “frameRate?”frameRate?: number;Defined in: client-sdk-js/src/track/options.ts:150
Target frame rate for the screen share capture.
preferCurrentTab?
Section titled “preferCurrentTab?”preferCurrentTab?: boolean;Defined in: client-sdk-js/src/track/options.ts:191
Experimental
Instructs the browser to offer the current tab as the most prominent capture source.
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab
resolution?
Section titled “resolution?”resolution?: VideoResolution;Defined in: client-sdk-js/src/track/options.ts:145
Capture resolution. Defaults to 1080 for most browsers.
selfBrowserSurface?
Section titled “selfBrowserSurface?”selfBrowserSurface?: "include" | "exclude";Defined in: client-sdk-js/src/track/options.ts:156
Specifies whether the browser should allow the user to select the current tab for capture.
suppressLocalAudioPlayback?
Section titled “suppressLocalAudioPlayback?”suppressLocalAudioPlayback?: boolean;Defined in: client-sdk-js/src/track/options.ts:182
Experimental
Controls whether the audio playing in a tab will continue to be played out of a user’s local speakers when the tab is captured.
surfaceSwitching?
Section titled “surfaceSwitching?”surfaceSwitching?: "include" | "exclude";Defined in: client-sdk-js/src/track/options.ts:162
Specifies whether the browser should display a control to allow the user to dynamically switch the shared tab during screen-sharing.
systemAudio?
Section titled “systemAudio?”systemAudio?: "include" | "exclude";Defined in: client-sdk-js/src/track/options.ts:168
Specifies whether the browser should include the system audio among the possible audio sources offered to the user.
video?
Section titled “video?”video?: | true | { displaySurface?: "window" | "browser" | "monitor";};Defined in: client-sdk-js/src/track/options.ts:140
true to capture video. Chrome allows additional options.
https://developer.chrome.com/docs/web-platform/screen-sharing-controls/#displaySurface