1. 面向开发者的 Web 技术
  2. Web API
  3. SourceBuffer
  4. SourceBuffer.appendBuffer()

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

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 ExtensionsTM
# dom-sourcebuffer-appendbuffer

浏览器兼容性

参见

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /