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 Standard
# dom-media-fastseek-dev

ブラウザーの互換性

BCD tables only load in the browser

関連情報