HTMLMediaElement: fastSeek()-Methode
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die HTMLMediaElement.fastSeek()
-Methode führt ein schnelles Suchen in den Medien zu einer neuen Zeit mit Präzisionseinbußen durch.
Hinweis:
Wenn Sie mit Präzision suchen müssen, sollten Sie stattdessen HTMLMediaElement.currentTime
setzen.
Syntax
js
fastSeek(time)
Parameter
time
-
Ein Doppelwert.
Rückgabewert
Keiner (undefined
).
Beispiele
Dieses Beispiel sucht schnell zur 20-Sekunden-Position des <video>
-Elements.
js
let myVideo = document.getElementById("myVideoElement");
myVideo.fastSeek(20);
Spezifikationen
Specification |
---|
HTML # dom-media-fastseek-dev |
Browser-Kompatibilität
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.
Siehe auch
- HTMLMediaElement.currentTime zum Suchen ohne Präzisionseinbußen