OverconstrainedError

open class OverconstrainedError(val constraint: String, message: String = definedExternally) : DOMException(source)

The OverconstrainedError interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied.

MDN Reference

Constructors

Link copied to clipboard
constructor(constraint: String, message: String = definedExternally)

Properties

Link copied to clipboard

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.

Link copied to clipboard
open override val message: String
Link copied to clipboard