The MediaTrackSupportedConstraints
dictionary establishes the list of constrainable properties recognized by the user agent or browser in its implementation of the MediaStreamTrack
object. An object conforming to MediaTrackSupportedConstraints
is returned by MediaDevices.getSupportedConstraints()
.
Documentation MediaTrackSupportedConstraints by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Fields
optionalwidth:Null<Bool>
A Boolean value whose value is true
if the width
constraint is supported in the current environment.
optionalvolume:Null<Bool>
A Boolean value whose value is true
if the volume
constraint is supported in the current environment.
optionalsampleSize:Null<Bool>
A Boolean value whose value is true
if the sampleSize
constraint is supported in the current environment.
optionalsampleRate:Null<Bool>
A Boolean value whose value is true
if the sampleRate
constraint is supported in the current environment.
optionalnoiseSuppression:Null<Bool>
A Boolean whose value is true
if the noiseSuppression
constraint is supported in the current environment.
optionallatency:Null<Bool>
A Boolean value whose value is true
if the latency
constraint is supported in the current environment.
optionalheight:Null<Bool>
A Boolean value whose value is true
if the height
constraint is supported in the current environment.
optionalgroupId:Null<Bool>
A Boolean value whose value is true
if the groupId
constraint is supported in the current environment.
optionalframeRate:Null<Bool>
A Boolean value whose value is true
if the frameRate
constraint is supported in the current environment.
optionalfacingMode:Null<Bool>
A Boolean value whose value is true
if the facingMode
constraint is supported in the current environment.
optionalechoCancellation:Null<Bool>
A Boolean value whose value is true
if the echoCancellation
constraint is supported in the current environment.
optionaldeviceId:Null<Bool>
A Boolean value whose value is true
if the deviceId
constraint is supported in the current environment.
optionalchannelCount:Null<Bool>
A Boolean value whose value is true
if the channelCount
constraint is supported in the current environment.
optionalautoGainControl:Null<Bool>
A Boolean whose value is true
if the autoGainControl
constraint is supported in the current environment.
optionalaspectRatio:Null<Bool>
A Boolean value whose value is true
if the aspectRatio
constraint is supported in the current environment.