HTMLMediaElement: fastSeek() メソッド
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
HTMLMediaElement.fastSeek()
メソッドは、精度と引き換えにで新しい時間へのメディアを迅速にシークします。
メモ:
正確にシークする必要がある場合は、代わりに HTMLMediaElement.currentTime
を設定してください。
構文
js
fastSeek(time)
引数
time
-
倍精度浮動小数点値です。
返値
なし (undefined
)。
例
この例では、 video 要素の 20 秒の位置に素早くシークします。
js
let myVideo = document.getElementById("myVideoElement");
myVideo.fastSeek(20);
仕様書
Specification |
---|
HTML # dom-media-fastseek-dev |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
fastSeek |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
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.
関連情報
- HTMLMediaElement.currentTime: 精度を犠牲にすることなくシークを行う