addSourceBuffer

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

MDN Reference