OverconstrainedError.constraint

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The constraint read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied.

Value

Specifications

Specification
Media Capture and Streams
# dom-overconstrainederror-constraint

Browser compatibility

BCD tables only load in the browser