SourceBuffer: timestampOffset property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Note: This feature is available in Dedicated Web Workers.

The timestampOffset property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the SourceBuffer.

The initial value of timestampOffset is 0.

Value

A double, with the offset amount expressed in seconds.

Exceptions

The following exception may be thrown when setting a new value for this property:

InvalidStateError DOMException

Thrown if one or more of the SourceBuffer objects in 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.

Examples

TBD

Specifications

Specification
Media Source Extensions™
# dom-sourcebuffer-timestampoffset

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
timestampOffset
Available in workers
Experimental

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.

See also