DisplayMediaStreamOptions Class

The options of getDisplayMedia() (https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions).

public sealed class DisplayMediaStreamOptions

Constructors

NameDescription
DisplayMediaStreamOptions()

DisplayMediaStreamOptions()

DisplayMedia.cs
public DisplayMediaStreamOptions()

No documentation is available.

Properties

NameDescription
AudioGets whether the audio is requested, or the constraints of the audio track.
AudioSelectionGets whether the user chooses the audio, or null.
ControllerGets the controller of the capture, or null.
MonitorTypeSurfacesGets whether the monitors should be offered, or null.
SelfBrowserSurfaceGets whether the surface of the application should be offered, or null.
SurfaceSwitchingGets whether the user can switch the surface, or null.
SystemAudioGets whether the audio of the system should be offered, or null.
VideoGets whether the video is requested (it must be), or the constraints of the video track.
WindowAudioGets which audio should be offered with a window, or null.

Gets whether the audio is requested, or the constraints of the audio track.

public BooleanOrMediaTrackConstraints Audio { get; init; }

AudioSelection

DisplayMedia.cs

Gets whether the user chooses the audio, or null.

public AudioSelectionPreference? AudioSelection { get; init; }

Controller

DisplayMedia.cs

Gets the controller of the capture, or null.

public CaptureController? Controller { get; init; }

MonitorTypeSurfaces

DisplayMedia.cs

Gets whether the monitors should be offered, or null.

public MonitorTypeSurfaces? MonitorTypeSurfaces { get; init; }

SelfBrowserSurface

DisplayMedia.cs

Gets whether the surface of the application should be offered, or null.

public SelfCapturePreference? SelfBrowserSurface { get; init; }

SurfaceSwitching

DisplayMedia.cs

Gets whether the user can switch the surface, or null.

public SurfaceSwitchingPreference? SurfaceSwitching { get; init; }

SystemAudio

DisplayMedia.cs

Gets whether the audio of the system should be offered, or null.

public SystemAudioPreference? SystemAudio { get; init; }

Gets whether the video is requested (it must be), or the constraints of the video track.

public BooleanOrMediaTrackConstraints Video { get; init; }

WindowAudio

DisplayMedia.cs

Gets which audio should be offered with a window, or null.

public WindowAudioPreference? WindowAudio { get; init; }