草案
此页面不完整。

这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

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 只读
Returns the number of SourceBuffer objects in the list.

事件处理程序

SourceBufferList.onaddsourcebuffer
The event handler for the addsourcebuffer 事件。
SourceBufferList.onremovesourcebuffer
The event handler for the removesourcebuffer 事件。

方法

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. [] )。

范例

TBD.

规范

规范 状态 注释
媒体源扩展
The definition of 'SourceBufferList' in that specification.
推荐 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
SourceBufferList Chrome 31 Edge 12 Firefox 42
42
25 — 42 注意事项 Disabled
Limited support to an allowed list of sites, for example YouTube, Netflix, and other popular streaming sites. The limitation was removed when Media Source Extensions was enabled by default in Firefox 42.
Disabled preference. To change preferences in Firefox, visit about:config.
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
42
25 — 42 注意事项 Disabled
Limited support to an allowed list of sites, for example YouTube, Netflix, and other popular streaming sites. The limitation was removed when Media Source Extensions was enabled by default in Firefox 42.
Disabled preference. To change preferences in Firefox, visit about:config.
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
42
25 — 42 注意事项 Disabled
Limited support to an allowed list of sites, for example YouTube, Netflix, and other popular streaming sites. The limitation was removed when Media Source Extensions was enabled by default in Firefox 42.
Disabled preference. To change preferences in Firefox, visit about:config.
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
42
25 — 42 注意事项 Disabled
Limited support to an allowed list of sites, for example YouTube, Netflix, and other popular streaming sites. The limitation was removed when Media Source Extensions was enabled by default in Firefox 42.
Disabled preference. To change preferences in Firefox, visit about:config.
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
42
25 — 42 注意事项 Disabled
Limited support to an allowed list of sites, for example YouTube, Netflix, and other popular streaming sites. The limitation was removed when Media Source Extensions was enabled by default in Firefox 42.
Disabled preference. To change preferences in Firefox, visit about:config.
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

图例

完整支持

完整支持

不支持

不支持

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

见实现注意事项。

用户必须明确启用此特征。

用户必须明确启用此特征。

要求使用供应商前缀或不同名称。

要求使用供应商前缀或不同名称。

另请参阅

元数据

  • 最后修改:
  1. Media Source Extensions API
  2. SourceBufferList
  3. 特性
    1. length
  4. 方法
    1. SourceBufferList: indexed property getter
  5. 继承:
    1. EventTarget
  6. Related pages for Media Source Extensions
    1. HTMLVideoElement.getVideoPlaybackQuality()
    2. MediaSource
    3. SourceBuffer
    4. TextTrack.sourceBuffer
    5. TrackDefault
    6. TrackDefaultList
    7. URL.createObjectURL()
    8. VideoPlaybackQuality
    9. VideoTrack.sourceBuffer

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1