HTMLMediaElement: fastSeek() method

Limited availability

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

The HTMLMediaElement.fastSeek() method quickly seeks the media to the new time with precision tradeoff.

Note: If you need to seek with precision, you should set HTMLMediaElement.currentTime instead.

Syntax

js
fastSeek(time)

Parameters

time

A double.

Return value

None (undefined).

Examples

This example quickly seeks to 20-second position of the video element.

js
let myVideo = document.getElementById("myVideoElement");

myVideo.fastSeek(20);

Specifications

Specification
HTML
# dom-media-fastseek-dev

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
fastSeek
Chrome – No support
Chrome
footnote
footnote See bug 41276303
Edge – No support
Edge
footnote
footnote See bug 41276303
Firefox – Full support
Firefox 31 (Release date: 2014-07-22)
footnote Full support
Opera – No support
Opera
footnote
footnote See bug 41276303
Safari – Full support
Safari 8 (Release date: 2014-10-16)
footnote Full support
Chrome Android – No support
Chrome Android
footnote
footnote See bug 41276303
Firefox for Android – Full support
Firefox for Android 31 (Release date: 2014-07-22)
footnote Full support
Opera Android – No support
Opera Android
footnote
footnote See bug 41276303
Safari on iOS – Full support
Safari on iOS 8 (Release date: 2014-09-17)
footnote Full support
Samsung Internet – No support
Samsung Internet
footnote
footnote See bug 41276303
WebView Android – No support
WebView Android
footnote
footnote See bug 41276303
WebView on iOS – Full support
WebView on iOS 8 (Release date: 2014-09-17)
footnote Full support

Legend

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

Full support
Full support
No support
No support
See implementation notes.

See also