OverconstrainedError.constraint

Draft
This page is not complete.

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

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 contraint that was not satisfied.

Syntax

var constraint = Overconstrainederror.constraint;

Value

A String

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'constraint' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
constraint
Experimental
Chrome Full support 63Edge Full support ≤79Firefox ? IE ? Opera Full support 50Safari ? WebView Android Full support 63Chrome Android Full support 63Firefox Android ? Opera Android Full support 46Safari iOS ? Samsung Internet Android Full support 8.0

Legend

Full support
Full support
Compatibility unknown
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.