English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML Audio/Video DOM Reference Manual
Show whether the user is currently seeking in the video:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML Audio/Video seeking attribute usage-Basic Tutorial(oldtoolbag.com)</title> <script> function isSeeking() { myVid=document.getElementById("video"1); document.getElementById("span"1").innerHTML=("Seeking: " + myVid.seeking()); } </script> </head> <body> <video id="video"1" controls="controls" onseeking="isSeeking()" onseeked="isSeeking()"> <source src="movie.mp"4"type="video"/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support HTML5 video tag. </video> <p>Try to address in the video <span id="span1></span></p> </body> </html>Test to see ‹/›
The seeking property returns whether the user is currently addressing the audio/Seeking in the video.
Seeking is when you are in the audio/Moving in the video/when jumping to a new position.
Note: This property is read-only
IEFirefoxOperaChromeSafari
All mainstream browsers partially support the seekable property.
Note:Internet Explorer 8 and earlier versions do not support this property.
audio|video.seeking
Type | Description |
---|---|
Boolean | true|false. If the user is addressing, it is true, otherwise it is false. |