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

@:optionaloptionalwidth:Null<Bool>

A Boolean value whose value is true if the width constraint is supported in the current environment.

@:optionaloptionalvolume:Null<Bool>

A Boolean value whose value is true if the volume constraint is supported in the current environment.

@:optionaloptionalviewportWidth:Null<Bool>

@:optionaloptionalviewportOffsetY:Null<Bool>

@:optionaloptionalviewportOffsetX:Null<Bool>

@:optionaloptionalviewportHeight:Null<Bool>

@:optionaloptionalscrollWithPage:Null<Bool>

@:optionaloptionalsampleSize:Null<Bool>

A Boolean value whose value is true if the sampleSize constraint is supported in the current environment.

@:optionaloptionalsampleRate:Null<Bool>

A Boolean value whose value is true if the sampleRate constraint is supported in the current environment.

@:optionaloptionalnoiseSuppression:Null<Bool>

A Boolean whose value is true if the noiseSuppression constraint is supported in the current environment.

@:optionaloptionalmediaSource:Null<Bool>

@:optionaloptionallatency:Null<Bool>

A Boolean value whose value is true if the latency constraint is supported in the current environment.

@:optionaloptionalheight:Null<Bool>

A Boolean value whose value is true if the height constraint is supported in the current environment.

@:optionaloptionalgroupId:Null<Bool>

A Boolean value whose value is true if the groupId constraint is supported in the current environment.

@:optionaloptionalframeRate:Null<Bool>

A Boolean value whose value is true if the frameRate constraint is supported in the current environment.

@:optionaloptionalfacingMode:Null<Bool>

A Boolean value whose value is true if the facingMode constraint is supported in the current environment.

@:optionaloptionalechoCancellation:Null<Bool>

A Boolean value whose value is true if the echoCancellation constraint is supported in the current environment.

@:optionaloptionaldeviceId:Null<Bool>

A Boolean value whose value is true if the deviceId constraint is supported in the current environment.

@:optionaloptionalchannelCount:Null<Bool>

A Boolean value whose value is true if the channelCount constraint is supported in the current environment.

@:optionaloptionalbrowserWindow:Null<Bool>

@:optionaloptionalautoGainControl:Null<Bool>

A Boolean whose value is true if the autoGainControl constraint is supported in the current environment.

@:optionaloptionalaspectRatio:Null<Bool>

A Boolean value whose value is true if the aspectRatio constraint is supported in the current environment.