Javascript examples for DOM HTML Element:Video
The seeking property returns if the user is currently seeking in the video.
This property is read-only.
A Boolean, returns true if the user is currently seeking, otherwise it returns false
The following code shows how to Show if the user is currently seeking in the video:
<!DOCTYPE html> <html> <body> <video id="myVideo" width="320" height="240" controls onseeking="myFunction()" onseeked="myFunction()"> <source src="your.mp4" type="video/mp4"> <source src="your.ogg" type="video/ogg"> Your browser does not support the video tag. </video>//from www . j ava 2 s . c o m <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myVideo"); document.getElementById("mySpan").innerHTML = ("Seeking: " + x.seeking); } </script> </body> </html>