error property
The MediaStreamError describing the error that triggered the event.
This property is read-only.
Syntax
| JavaScript |
|---|
error = object.error |
Property values
Type: MediaStreamError
A description of the error.
| Value | Condition |
|---|---|
|
The operation is not supported. |
|
The user did not grant permission for the operation. |
|
One of the mandatory Constraints could not be satisfied. |
|
Due to changes in the environment, one or more mandatory constraints can no longer be satisfied. |
|
The object can not be found here. |
|
The operation was aborted. |
|
The source of the MediaStream could not be accessed due to a hardware error (e.g. lock from another process). |
Remarks
This property can be null.
See also
- MediaStreamErrorEvent
- ConstraintErrorCallback
- NavigatorUserMediaErrorCallback
Show: