草案
此页面不完整。
这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
SourceBufferList
interface represents a simple container list for multiple
SourceBuffer
对象。
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()
例如。
<div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="../API/EventTarget.html" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="../API/SourceBufferList" target="_top"><rect x="151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SourceBufferList</text></a></svg></div>
a:hover text { fill: #0095DD; pointer-events: all;}
SourceBufferList.length
只读
SourceBuffer
objects in the list.
SourceBufferList.onaddsourcebuffer
addsourcebuffer
事件。
SourceBufferList.onremovesourcebuffer
removesourcebuffer
事件。
Inherits methods from its parent interface,
EventTarget
.
SourceBufferList
: indexed property getter
SourceBuffer
objects in the list to be accessed with an array operator (i.e.
[]
)。
TBD.
| 规范 | 状态 | 注释 |
|---|---|---|
|
媒体源扩展
The definition of 'SourceBufferList' in that specification. |
推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
SourceBufferList
|
Chrome 31 | Edge 12 |
Firefox
42
|
IE 11 | Opera 15 | Safari 8 | WebView Android 4.4.3 | Chrome Android 33 | Firefox Android 不支持 No | Opera Android 14 | Safari iOS 不支持 No | Samsung Internet Android 3.0 |
SourceBuffer
|
Chrome 45 | Edge 12 |
Firefox
42
|
IE 11 | Opera 32 | Safari 8 | WebView Android 45 | Chrome Android 45 | Firefox Android 不支持 No | Opera Android 32 | Safari iOS 不支持 No | Samsung Internet Android 5.0 |
length
|
Chrome 23 | Edge 12 |
Firefox
42
|
IE 11 | Opera 15 | Safari 8 | WebView Android 4.4.3 | Chrome Android 33 | Firefox Android 不支持 No | Opera Android 14 | Safari iOS 不支持 No | Samsung Internet Android 3.0 |
onaddsourcebuffer
|
Chrome 53 | Edge 17 |
Firefox
42
|
IE 11 | Opera 40 | Safari 8 | WebView Android 53 | Chrome Android 53 | Firefox Android 不支持 No | Opera Android 41 | Safari iOS 不支持 No | Samsung Internet Android 6.0 |
onremovesourcebuffer
|
Chrome 53 | Edge 17 |
Firefox
42
|
IE 11 | Opera 40 | Safari 8 | WebView Android 53 | Chrome Android 53 | Firefox Android 不支持 No | Opera Android 41 | Safari iOS 不支持 No | Samsung Internet Android 6.0 |
完整支持
不支持
实验。期望将来行为有所改变。
见实现注意事项。
用户必须明确启用此特征。
要求使用供应商前缀或不同名称。
SourceBufferList