OverconstrainedError: OverconstrainedError() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The OverconstrainedError() constructor
creates a new OverconstrainedError object which indicates that the set of
desired capabilities for the current MediaStreamTrack cannot currently be
met. When this event is thrown on a MediaStreamTrack, it is muted until
either the current constraints can be established or until satisfiable constraints are
applied.
Syntax
js
new OverconstrainedError()
Parameters
constraint-
The constraint that was not satisfied.
messageOptional-
Text for the error's
messageproperty. Defaults to an empty string.
Specifications
| Specification |
|---|
| Media Capture and Streams # dom-overconstrainederror |