The MediaTrackConstraints dictionary is used to describe a set of capabilities and the value or values each can take on. A constraints dictionary is passed into applyConstraints() 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, and the most recently-requested set of custom constraints can be retrieved by calling getConstraints().

Documentation MediaTrackConstraints by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Fields

@:optionaloptionalwidth:Null<EitherType<Int, Dynamic>>

@:optionaloptionalviewportWidth:Null<EitherType<Int, Dynamic>>

@:optionaloptionalscrollWithPage:Null<Bool>

@:optionaloptionalmediaSource:Null<String>

@:optionaloptionalheight:Null<EitherType<Int, Dynamic>>

@:optionaloptionalframeRate:Null<EitherType<Float, Dynamic>>

@:optionaloptionalbrowserWindow:Null<Int>