Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
The MediaRecorderErrorEvent()
constructor creates a new MediaRecorderErrorEvent
object that represents an error that occurred during the recording of media by the MediaStream Recording API.
Note: In general, you won't create these yourself; they are delivered to your implementation of onerror
when errors occur while recording media.
new MediaRecorderErrorEvent(type, options)
Parameters
type
A string with the name of the event. It is case-sensitive and browsers always set it to error
.
options
An object that, in addition of the properties defined in Event()
, can have the following properties:
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.
Note: 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.
A new MediaRecorderErrorEvent
object.
This feature is no longer part of any specification, and longer on track to become standard.
Browser compatibilityRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4