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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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
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.