SourceBuffer.appendBuffer()

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

SourceBufferappendBuffer() 方法将 ArrayBufferTypedArrayDataView 中的媒体片段数据添加到 SourceBuffer 对象中。

语法

js
appendBuffer(source)

参数

source

一个 ArrayBufferTypedArray 或一个 DataView 对象,其中包含了你想要添加到 SourceBuffer 的媒体片段数据。

返回值

无(undefined)。

异常

无。

示例

待定。

规范

Specification
Media Source Extensions™
# dom-sourcebuffer-appendbuffer

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
appendBuffer
Available in workers
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Experimental. Expect behavior to change in the future.

参见