OverconstrainedError
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The OverconstrainedError interface of the Media Capture and Streams API 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.
Constructor
OverconstrainedError()-
Creates a new
OverconstrainedErrorobject.
Instance properties
OverconstrainedError.constraintRead only-
Returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied.
DOMException.messageRead only-
Returns the text supplied in the constructor.
DOMException.nameRead only-
Will always return
OverconstrainedError.
Instance methods
None.
Specifications
| Specification |
|---|
| Media Capture and Streams # overconstrainederror-interface |
Browser compatibility
BCD tables only load in the browser