W3cubDocs

/Haxe JavaScript

MediaTrackConstraints

package js.html

Available on js

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

optionalwidth:Null<EitherType<Int, ConstrainLongRange>>

optionalviewportWidth:Null<EitherType<Int, ConstrainLongRange>>

optionalviewportOffsetY:Null<EitherType<Int, ConstrainLongRange>>

optionalviewportOffsetX:Null<EitherType<Int, ConstrainLongRange>>

optionalviewportHeight:Null<EitherType<Int, ConstrainLongRange>>

optionalscrollWithPage:Null<Bool>

optionalnoiseSuppression:Null<EitherType<Bool, ConstrainBooleanParameters>>

optionalmediaSource:Null<String>

optionalheight:Null<EitherType<Int, ConstrainLongRange>>

optionalframeRate:Null<EitherType<Float, ConstrainDoubleRange>>

optionalfacingMode:Null<EitherType<String, EitherType<Array<String>, ConstrainDOMStringParameters>>>

optionalechoCancellation:Null<EitherType<Bool, ConstrainBooleanParameters>>

optionaldeviceId:Null<EitherType<String, EitherType<Array<String>, ConstrainDOMStringParameters>>>

optionalchannelCount:Null<EitherType<Int, ConstrainLongRange>>

optionalbrowserWindow:Null<Int>

optionalautoGainControl:Null<EitherType<Bool, ConstrainBooleanParameters>>

optionaladvanced:Null<Array<MediaTrackConstraintSet>>

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaTrackConstraints.html