addSourceBuffer method

SourceBuffer addSourceBuffer(
  1. String type
)

The addSourceBuffer() method of the MediaSource interface creates a new SourceBuffer of the given and adds it to the MediaSource's MediaSource.sourceBuffers list. The new SourceBuffer is also returned.

Implementation

external SourceBuffer addSourceBuffer(String type);