OverconstrainedError: constraint property

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

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
constraint

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support