BlobEvent
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年9月.
* Some parts of this feature may have varying levels of support.
流媒体录制 API 的 BlobEvent 接口表示与 Blob 关联的事件。这些 blob 通常(但不是一定)与媒体内容相关。
构造函数
BlobEvent()-
使用给定的参数创建一个
BlobEvent事件。
实例属性
从其父接口 Event 继承属性。
BlobEvent.data只读-
表示与事件关联的数据的
Blob。由于特定的Blob上发生了一些事情,导致EventTarget上触发了事件。 BlobEvent.timecode只读-
一个
DOMHighResTimeStamp,表示数据中的第一个分块的时间戳与由该录制器产生的第一个 Blob 事件中的第一个分块的时间戳之间的差。请注意,第一个生成的 Blob 事件中的 timecode 不需要为零。
实例方法
没有特定的方法,从其父接口 Event 继承方法。
规范
| Specification |
|---|
| MediaStream Recording> # blobevent-section> |
浏览器兼容性
Loading…
参见
- 父接口
Event。 - 流媒体录制 API:每次媒体分块就绪时发送
BlobEvent对象。 - 使用流媒体录制 API