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

indexed property getter SourceBufferList interface allows the SourceBuffer objects in the list to be accessed with an array operator (i.e. [] )。

句法

var mySourceBuffer = sourceBufferList[index];
					

参数

index
The index position of the SourceBuffer object you want to return.

返回值

A SourceBuffer 对象。

异常

No specific exceptions are thrown, but if the supplied index is great than or equal to SourceBufferList.length , the operation will return undefined .

范例

TBD.

规范

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

浏览器兼容性

The compatibility table in 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
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

图例

完整支持

完整支持

不支持

不支持

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

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

见实现注意事项。

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

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

另请参阅

元数据

  • 最后修改: