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:

Properties

@:optional advanced:Null<Array<MediaTrackConstraintSet>>

@:optional browserWindow:Null<Int>

@:optional deviceId:Null<EitherType<String, EitherType<Array<String>, Dynamic>>>

@:optional echoCancellation:Null<EitherType<Bool, Dynamic>>

@:optional facingMode:Null<EitherType<String, EitherType<Array<String>, Dynamic>>>

@:optional frameRate:Null<EitherType<Float, Dynamic>>

@:optional height:Null<EitherType<Int, Dynamic>>

@:optional mediaSource:Null<String>

@:optional scrollWithPage:Null<Bool>

@:optional viewportHeight:Null<EitherType<Int, Dynamic>>

@:optional viewportOffsetX:Null<EitherType<Int, Dynamic>>

@:optional viewportOffsetY:Null<EitherType<Int, Dynamic>>

@:optional viewportWidth:Null<EitherType<Int, Dynamic>>

@:optional width:Null<EitherType<Int, Dynamic>>

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