DisplayCaptureSelection Class

The display surface chosen for getDisplayMedia() (see MediaCaptureBackend.SelectDisplaySurface).

public sealed class DisplayCaptureSelection : IEquatable<DisplayCaptureSelection>
Implements

Constructors

NameDescription
DisplayCaptureSelection(MediaCaptureDevice, MediaCaptureDevice?)The display surface chosen for getDisplayMedia() (see MediaCaptureBackend.SelectDisplaySurface).

DisplayCaptureSelection(MediaCaptureDevice, MediaCaptureDevice?)

MediaCaptureBackend.cs

The display surface chosen for getDisplayMedia() (see MediaCaptureBackend.SelectDisplaySurface).

public DisplayCaptureSelection(MediaCaptureDevice Video, MediaCaptureDevice? Audio = null)

Parameters

Video MediaCaptureDevice
The video of the surface: a device of kind MediaDeviceKind.VideoInput, whose displaySurface setting is monitor, window or browser.
Audio MediaCaptureDevice?
The audio of the surface (a device of kind MediaDeviceKind.AudioInput), or null when the surface has no audio or the audio was not requested.

Properties

NameDescription
AudioThe audio of the surface (a device of kind MediaDeviceKind.AudioInput), or null when the surface has no audio or the audio was not requested.
VideoThe video of the surface: a device of kind MediaDeviceKind.VideoInput, whose displaySurface setting is monitor, window or browser.

The audio of the surface (a device of kind MediaDeviceKind.AudioInput), or null when the surface has no audio or the audio was not requested.

public MediaCaptureDevice? Audio { get; init; }

Property value

MediaCaptureDevice?

The video of the surface: a device of kind MediaDeviceKind.VideoInput, whose displaySurface setting is monitor, window or browser.

public MediaCaptureDevice Video { get; init; }

Property value

MediaCaptureDevice

Methods

NameDescription
Deconstruct(MediaCaptureDevice, MediaCaptureDevice?)
Equals(DisplayCaptureSelection?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(MediaCaptureDevice, MediaCaptureDevice?)

public void Deconstruct(out MediaCaptureDevice Video, out MediaCaptureDevice? Audio)

No documentation is available.

Equals overloads

Equals(DisplayCaptureSelection?)

public bool Equals(DisplayCaptureSelection? other)
Parameters
other DisplayCaptureSelection?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(DisplayCaptureSelection?, DisplayCaptureSelection?)
operator !=(DisplayCaptureSelection?, DisplayCaptureSelection?)

operator ==(DisplayCaptureSelection?, DisplayCaptureSelection?)

public static bool operator ==(DisplayCaptureSelection? left, DisplayCaptureSelection? right)

No documentation is available.

operator !=(DisplayCaptureSelection?, DisplayCaptureSelection?)

public static bool operator !=(DisplayCaptureSelection? left, DisplayCaptureSelection? right)

No documentation is available.