Skip to content

ScreenShareCaptureOptions

Defined in: client-sdk-js/src/track/options.ts:126

Options for capturing a screen share.

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?: "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?: unknown;

Defined in: client-sdk-js/src/track/options.ts:197

A CaptureController instance for further manipulation of the capture session if included.


frameRate?: number;

Defined in: client-sdk-js/src/track/options.ts:150

Target frame rate for the screen share capture.


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?: VideoResolution;

Defined in: client-sdk-js/src/track/options.ts:145

Capture resolution. Defaults to 1080 for most browsers.


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?: 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?: "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?: "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?:
| 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