MediaSource: setLiveSeekableRange() メソッド

Limited availability

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

setLiveSeekableRange()MediaSource インターフェイスのメソッドで、ユーザーがメディア要素でシークできる範囲を設定します。

構文

js
setLiveSeekableRange(start, end)

引数

start

ソースの最初から測定された秒単位で設定するシーク可能な範囲の始まり。 メディアソースの期間が正の無限大である場合、 HTMLMediaElement.seekable プロパティによって返される TimeRanges オブジェクトは、この値以下の開始タイムスタンプを持ちます。

end

ソースの最初から測定された秒単位で設定するシーク可能な範囲の終わり。 メディアソースの期間が正の無限大である場合、 HTMLMediaElement.seekable プロパティによって返される TimeRanges オブジェクトは、この値以上の終了タイムスタンプを持ちます。

返値

なし (undefined)。

js
// 未定

仕様書

Specification
Media Source Extensions™
# dom-mediasource-setliveseekablerange

ブラウザーの互換性

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
setLiveSeekableRange

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support