OverconstrainedError: constraint property

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

A string.

Specifications

Specification
Media Capture and Streams
# dom-overconstrainederror-constraint

Browser compatibility

BCD tables only load in the browser