OverconstrainedError: constraint property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used 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