Draft
This page is not complete.
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.
SourceBufferList.length
Read only
SourceBuffer
objects in the list.SourceBufferList.onaddsourcebuffer
addsourcebuffer
event.SourceBufferList.onremovesourcebuffer
removesourcebuffer
event.Inherits methods from its parent interface, EventTarget
.
SourceBufferList.SourceBuffer()
SourceBuffer
objects in the list to be accessed with an array operator (i.e. []
.)TBD.
Specification | Status | Comment |
---|---|---|
Media Source Extensions The definition of 'SourceBufferList' in that specification. | Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 31
|
Yes | 42
|
11
|
15 | 8 |
SourceBuffer
|
45 | ? | 42
|
11
|
32 | 8 |
length
|
31
|
12 | 42
|
11
|
15 | 8 |
onaddsourcebuffer
|
53 | No | 42
|
11
|
40 | 8 |
onremovesourcebuffer
|
53 | No | 42
|
11
|
40 | 8 |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 4.4.3 | 33 | Yes | No | 30 | No | ? |
SourceBuffer
|
45 | 45 | Yes | No | 32 | No | ? |
length
|
4.4.3 | 33 | Yes | No | 30 | No | ? |
onaddsourcebuffer
|
53 | 53 | Yes | No | 40 | No | ? |
onremovesourcebuffer
|
53 | 53 | Yes | No | 40 | No | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList