MediaTrackSupportedConstraints class

The 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 is returned by MediaDevices.getSupportedConstraints(). Because of the way interface definitions in WebIDL work, if a constraint is requested but not supported, no error will occur. Instead, the specified constraints will be applied, with any unrecognized constraints stripped from the request.That can lead to confusing and hard to debug errors, so be sure to use getSupportedConstraints() to retrieve this information before attempting to establish constraints if you need to know the difference between silently ignoring a constraint and a constraint being accepted. An actual constraint set is described using an object based on the MediaTrackConstraints dictionary. To learn more about how constraints work, see Capabilities, constraints, and settings.

Available extensions
Annotations
  • @anonymous
  • @JS()
  • @staticInterop

Constructors

MediaTrackSupportedConstraints({bool? width, bool? height, bool? aspectRatio, bool? frameRate, bool? facingMode, bool? resizeMode, bool? sampleRate, bool? sampleSize, bool? echoCancellation, bool? autoGainControl, bool? noiseSuppression, bool? latency, bool? channelCount, bool? deviceId, bool? groupId})
factory

Properties

aspectRatio bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
autoGainControl bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
channelCount bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
deviceId bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
echoCancellation bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
facingMode bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
frameRate bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
groupId bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
latency bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
noiseSuppression bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
resizeMode bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
sampleSize bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair
width bool

Available on MediaTrackSupportedConstraints, provided by the PropsMediaTrackSupportedConstraints extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited