--- title: SourceBuffer.appendBuffer() slug: Web/API/SourceBuffer/appendBuffer translation_of: Web/API/SourceBuffer/appendBuffer ---
appendBuffer()方法将媒体片段数据添加到SourceBuffer对象中,其中媒体片段用{{domxref("ArrayBuffer")}} 或 ArrayBufferView 对象存储 。sourceBuffer.appendBuffer(source);
sourceundefined.
None.
TBD.
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('Media Source Extensions', '#widl-SourceBuffer-appendBuffer-void-ArrayBuffer-data', 'appendBuffer()')}} | {{Spec2('Media Source Extensions')}} | Initial definition. |
{{Compat("api.SourceBuffer.appendBuffer")}}