The SourceBufferList interface represents a simple container list for multiple SourceBuffer objects.
The source buffer list containing the SourceBuffers appended to a particular MediaSource can be retrieved using the MediaSource.sourceBuffers property.
The individual source buffers can be accessed using the bracket notation[].
Fired when a SourceBuffer is removed from the list.
Examples
This example shows how to access the active source buffers of the MediaSource connected to an already playing HTMLVideoElement.
js
// Video is an already playing video using a MediaSource srcObjectconst video = document.querySelector("video");const mediaSource = video.srcObject;const sourceBufferList = mediaSource.activeSourceBuffers;for(const sourceBuffer of sourceBufferList){// Do something with each SourceBuffer, such as call abort()
sourceBuffer.abort();}