SourceBuffer.appendBuffer()

Draft

This page is not complete.

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The appendBuffer() method of the SourceBuffer interface appends media segment data from an ArrayBuffer or ArrayBufferView object to the SourceBuffer.

Syntax

sourceBuffer.appendBuffer(source);

Parameters

source
A BufferSource (that is, either an ArrayBufferView or ArrayBuffer) which contains the media segment data you want to add to the SourceBuffer.

Return value

Exceptions

None.

Example

TBD.

Specifications

Specification Status Comment
Media Source Extensions
The definition of 'appendBuffer()' in that specification.
Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser

See also