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

草案
此页面不完整。

timestampOffset 特性为 SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the SourceBuffer .

初始值 timestampOffset 为 0。

句法

var myOffset = sourceBuffer.timestampOffset;
sourceBuffer.timestampOffset = 2.5;
					

A double, with the offset amount expressed in seconds.

异常

The following exceptions may be thrown when setting a new value for this property.

异常 解释
InvalidStateError One or more of the SourceBuffer 对象在 MediaSource.sourceBuffers are being updated (i.e. their SourceBuffer.updating property is currently true ), a media segment inside the SourceBuffer is currently being parsed, or this SourceBuffer has been removed from the MediaSource .

范例

TBD

规范

规范 状态 注释
媒体源扩展
The definition of 'timestampOffset' 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
timestampOffset 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

图例

完整支持

完整支持

不支持

不支持

见实现注意事项。

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

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

另请参阅

元数据

  • 最后修改: