MediaStreamConstraints Class
The constraints of a getUserMedia() request (https://w3c.github.io/mediacapture-main/#dom-mediastreamconstraints).
public sealed class MediaStreamConstraintsConstructors
| Name | Description |
|---|---|
| MediaStreamConstraints() |
MediaStreamConstraints()
MediaDevices.cspublic MediaStreamConstraints()No documentation is available.
Properties
| Name | Description |
|---|---|
| Audio | Gets whether an audio track is requested, or the constraints of the audio track. |
| Semantics | Gets the semantics of the request, or null. |
| Video | Gets whether a video track is requested, or the constraints of the video track. |
Audio
MediaDevices.csGets whether an audio track is requested, or the constraints of the audio track.
public BooleanOrMediaTrackConstraints Audio { get; init; }Semantics
MediaDevices.csGets the semantics of the request, or null.
public GetUserMediaSemantics? Semantics { get; init; }Video
MediaDevices.csGets whether a video track is requested, or the constraints of the video track.
public BooleanOrMediaTrackConstraints Video { get; init; }