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.

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

Syntax

var constraint = Overconstrainederror.constraint;

Value

A String

Specifications

Specification
Media Capture and Streams
# dom-overconstrainederror-constraint

Browser compatibility

BCD tables only load in the browser