MediaStreamConstraints Class

The constraints of a getUserMedia() request (https://w3c.github.io/mediacapture-main/#dom-mediastreamconstraints).

public sealed class MediaStreamConstraints

Constructors

NameDescription
MediaStreamConstraints()

MediaStreamConstraints()

MediaDevices.cs
public MediaStreamConstraints()

No documentation is available.

Properties

NameDescription
AudioGets whether an audio track is requested, or the constraints of the audio track.
SemanticsGets the semantics of the request, or null.
VideoGets whether a video track is requested, or the constraints of the video track.

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

public BooleanOrMediaTrackConstraints Audio { get; init; }

Gets the semantics of the request, or null.

public GetUserMediaSemantics? Semantics { get; init; }

Gets whether a video track is requested, or the constraints of the video track.

public BooleanOrMediaTrackConstraints Video { get; init; }