SourceBuffer.timestampOffset

Limited availability

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

timestampOffsetSourceBuffer インターフェイスのプロパティで、SourceBuffer に追加されるメディアセグメント内のタイムスタンプに適用されるオフセットを制御します。

timestampOffset の初期値は 0 です。

double 型で、秒単位のオフセット量です。

例外

このプロパティに新しい値を設定すると、次の例外が発生する場合があります。

InvalidStateError DOMException

MediaSource.sourceBuffers に含まれる SourceBuffer オブジェクトの 1 つ以上が更新中(つまり、SourceBuffer.updating プロパティが現在 true)、SourceBuffer 内のメディアセグメントが現在解析中、またはこの SourceBufferMediaSource から取り除かれていた場合に発生します。

TBD

仕様書

Specification
Media Source Extensions™
# dom-sourcebuffer-timestampoffset

ブラウザーの互換性

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.

関連情報