constraintName property

The name of the constraint that caused the error. This is used only for MediaStreamError where the name is either ConstraintNotSatisfiedError or OverconstrainedError.

This property is read-only.

Syntax

JavaScript
name = object.constraintName

 

Property values

Type: string

The name of the constraint that caused the error.

Remarks

This property can be null.

See also

MediaStreamError

 

 

Show: