MediaAccessError
Raised when getUserMedia or getDisplayMedia fails to hand the SDK a local track — a denied permission, a device already held exclusively by another application, or a capture the browser refused.
Non-fatal by default: a screen share or additional-device failure never ends the call, and a main-connection failure degrades to receive-only when the call is set to receive media. fatal is true only when the call cannot continue — fallbackToReceiveOnly was disabled, or the call has no receive intent to fall back to.
Extends
Error
Constructors
Constructor
Parameters
operation
The SDK operation that failed, e.g. 'acquireLocalMedia', 'startScreenShare', 'addInputDevice'.
media
The media being acquired: 'audio', 'video', 'audiovideo', or 'screen'.
originalError
The raw getUserMedia/getDisplayMedia error, typically a DOMException.
fatal
Whether this failure terminates the call.
Properties
denied
Read-only. true when the underlying failure is a permission denial by the user or by policy — that is, when originalError.name is NotAllowedError, SecurityError, or PermissionDeniedError.
fatal
Whether this failure terminates the call.
media
The media being acquired: 'audio', 'video', 'audiovideo', or 'screen'.
operation
The SDK operation that failed.
originalError
The raw getUserMedia/getDisplayMedia error.
Examples
See
CallError— the envelope this arrives in onerrors$, carryinglegandlegId.MediaOptions.fallbackToReceiveOnly— controls whether a main-connection failure is fatal.