SourceBufferList
Draft
This page is not complete.
Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The SourceBufferList
interface represents a simple container list for multiple SourceBuffer
objects.
The source buffer list containing the SourceBuffer
s appended to a particular MediaSource
can be retrieved using the MediaSource.sourceBuffers
property. The individual source buffers can be accessed using array operator (i.e. []
) or functions such as forEach()
for example.
Properties
SourceBufferList.length
Read only- Returns the number of
SourceBuffer
objects in the list.
Event handlers
SourceBufferList.onaddsourcebuffer
- The event handler for the
addsourcebuffer
event. SourceBufferList.onremovesourcebuffer
- The event handler for the
removesourcebuffer
event.
Methods
Inherits methods from its parent interface, EventTarget
.
SourceBufferList
: indexed property getter- This getter allows the
SourceBuffer
objects in the list to be accessed with an array operator (i.e.[]
.)
Examples
TBD.
Specifications
Specification | Status | Comment |
---|---|---|
Media Source Extensions The definition of 'SourceBufferList' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
BCD tables only load in the browser