OverconstrainedError.constraint

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

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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