Table of Contents

Class MediaTrackConstraints

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The MediaTrackConstraints dictionary is used to describe a set of media capabilities and the value or values each can take on.

[ToObject]
public class MediaTrackConstraints : MediaTrackConstraintSet
Inheritance
MediaTrackConstraints
Inherited Members

Remarks

A constraints dictionary is passed into the ApplyConstraints(MediaTrackConstraints) method of the MediaStreamTrack interface to allow a script to establish a set of exact (required) values or ranges and/or preferred values or ranges of values for the track.

The most recently-requested set of custom constraints can be retrieved by calling GetConstraints().

Objects of this type may also be passed to:

-Media Capture and Streams API
-Capabilities, constraints, and settings
-Screen Capture API
-Using the Screen Capture API
-GetConstraints()
-ApplyConstraints(MediaTrackConstraints)
-GetUserMedia(MediaStreamConstraints)
-GetDisplayMedia(DisplayMediaStreamOptions)
-GetSupportedConstraints()
-MediaTrackSupportedConstraints
-GetSettings()

See also on MDN

Constructors

MediaTrackConstraints()

public MediaTrackConstraints()

Fields

Advanced

[Value("advanced")]
public List<MediaTrackConstraintSet> Advanced

Field Value

List<MediaTrackConstraintSet>