SourceBuffer.timestampOffset
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
SourceBuffer
接口的 timestampOffset
属性控制应用于随后附加到 SourceBuffer 的媒体片段内的时间戳偏移量。
timestampOffset
的初始值是 0。
值
一个双精度浮点数,偏移量以秒为单位。
异常
为该属性设置新值时可能会引发以下异常:
InvalidStateError
DOMException
-
如果
SourceBuffer
对象正在更新(即它的SourceBuffer.updating
属性当前为true
)、当前正在解析SourceBuffer
内的媒体片段或者此SourceBuffer
已经从MediaSource
移除。
示例
待定
规范
Specification |
---|
Media Source Extensions™ # dom-sourcebuffer-timestampoffset |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
timestampOffset | ||||||||||||
Available in workers |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Experimental. Expect behavior to change in the future.
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.