MediaRecorderErrorEvent
()
构造函数创建新
MediaRecorderErrorEvent
object that represents an error that occurred during the recording of media by the
MediaStream 录制 API
.
In general, you won't create these yourself; they are delivered to your implementation of
MediaRecorder.onerror
when errors occur while recording media.
var errorEvent = new MediaRecorderErrorEvent(errorInfo)
errorInfo
error
property at a minimum.
error
DOMException
that describes the error that occurred. This object's
名称
property should indicate the name of the error that occurred. The other fields may or may not be present.
某些
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.
| 规范 | 状态 | 注释 |
|---|---|---|
|
MediaStream 录制
The definition of 'MediaRecorderErrorEvent()' in that specification. |
工作草案 | 初始定义。 |
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
更新 GitHub 上的兼容性数据| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
MediaRecorderErrorEvent()
构造函数
|
Chrome
No
|
Edge
No
|
Firefox 57 | IE No |
Opera
No
|
Safari No | WebView Android No |
Chrome Android
No
|
Firefox Android 57 |
Opera Android
No
|
Safari iOS No |
Samsung Internet Android
No
|
完整支持
不支持
见实现注意事项。
MediaRecorderErrorEvent
MediaRecorderErrorEvent()