BlobEvent:BlobEvent() 构造函数
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.
语法
js
new BlobEvent(type, options)
参数
type
-
表示事件名的字符串。它区分大小写,浏览器总是将其设置为
dataavailable
。 options
-
一个对象,除了在
Event()
中定义的属性之外,还可以具有以下属性:data
-
和事件关联的
Blob
数据。 timecode
可选-
用于初始化 blob 事件的
DOMHighResTimeStamp
。
返回值
一个新的 BlobEvent
对象。
规范
Specification |
---|
MediaStream Recording # dom-blobevent-blobevent |
浏览器兼容性
参见
- 所属的
BlobEvent
接口。