Web/API/MediaRecorderErrorEvent/MediaRecorderErrorEvent

From Get docs

The MediaRecorderErrorEvent() constructor creates a new MediaRecorderErrorEvent object that represents an error that occurred during the recording of media by the MediaStream Recording API.

In general, you won't create these yourself; they are delivered to your implementation of MediaRecorder.onerror when errors occur while recording media.


Syntax

var errorEvent = new MediaRecorderErrorEvent(errorInfo)

Parameters

errorInfo
An object describing the error object to be created. It must contain the error property at a minimum.
error
A DOMException that describes the error that occurred. This object's name property should indicate the name of the error that occurred. The other fields may or may not be present.

Some user agents add to the error object other properties that provide information such as stack dumps, the name of the JavaScript file and the line number where the error occurred, and other debugging aids, but you should not rely on this information in a production environment.


Specifications

Specification Status Comment
MediaStream RecordingThe definition of 'MediaRecorderErrorEvent()' in that specification. Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
MediaRecorderErrorEvent() constructor

Chrome No support No

Notes'

No support No

Notes'

Notes' Uses a generic event with an error property.

Edge No support No

Notes'

No support No

Notes'

Notes' Uses a generic event with an error property.

Firefox

Full support 57

IE

No support No

Opera No support No

Notes'

No support No

Notes'

Notes' Uses a generic event with an error property.

Safari

No support No

WebView Android

No support No

Chrome Android No support No

Notes'

No support No

Notes'

Notes' Uses a generic event with an error property.

Firefox Android

Full support 57

Opera Android No support No

Notes'

No support No

Notes'

Notes' Uses a generic event with an error property.

Safari iOS

No support No

Samsung Internet Android No support No

Notes'

No support No

Notes'

Notes' Uses a generic event with an error property.

Legend

Full support  
Full support
No support  
No support
See implementation notes.'
See implementation notes.