Optional
audioOptional
contentspecify the type of content, see: https://www.w3.org/TR/mst-content-hint/#video-content-hints
Optional
controllera CaptureController object instance containing methods that can be used to further manipulate the capture session if included.
Optional
Experimental
preferExperimental option to instruct the browser to offer the current tab as the most prominent capture source
Optional
resolutioncapture resolution, defaults to 1080 for all browsers other than Safari On Safari 17, default resolution is not capped, due to a bug, specifying any resolution at all would lead to a low-resolution capture. https://bugs.webkit.org/show_bug.cgi?id=263015
Optional
selfspecifies whether the browser should allow the user to select the current tab for capture
Optional
suppressExperimental option to control whether the audio playing in a tab will continue to be played out of a user's local speakers when the tab is captured.
Optional
surfacespecifies whether the browser should display a control to allow the user to dynamically switch the shared tab during screen-sharing.
Optional
systemspecifies whether the browser should include the system audio among the possible audio sources offered to the user
Optional
videoonly allows for 'true' and chrome allows for additional options to be passed in https://developer.chrome.com/docs/web-platform/screen-sharing-controls/#displaySurface
true to capture audio shared. browser support for audio capturing in screenshare is limited: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility