addSourceBuffer

open external fun addSourceBuffer(type: String): SourceBuffer(source)

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

MDN Reference