HTML DOM Video seeking प्रॉपर्टी
HTML DOM Video seeking प्रॉपर्टी एक बूलियन (true/false) लौटाती है जो दर्शाता है कि उपयोगकर्ता चल रहे वीडियो को सीक कर रहा है (वर्तमान प्लेबैक को नई स्थिति पर ले जा रहा है) या नहीं।
सिंटैक्स
बूलियन मान प्राप्त करना
mediaObject.seeking
उदाहरण
आइए HTML DOM Video seeking प्रॉपर्टी का एक उदाहरण देखें:
<!DOCTYPE html> <html> <head> <title>HTML DOM Video seeking</title> <style> * { padding: 2px; margin:5px; } form { width:70%; margin: 0 auto; text-align: center; } input[type="button"] { border-radius: 10px; } </style> </head> <body> <form> <fieldset> <legend>HTML-DOM-Video-seeking</legend> <video id="demo" width="320" onseeking="getTrackDetails()" onseeked="getTrackDetails()" controls><source src="https://www.tutorialspoint.com/html5/foo.mp4" type="video/mp4"></video><br> <div id="divDisplay"></div> </fieldset> </form> <script> var divDisplay = document.getElementById("divDisplay"); var demo = document.getElementById("demo"); demo.autoplay =true; function getTrackDetails() { if(demo.seeking) divDisplay.textContent = 'To understand the concept watch full video'; } </script> </body> </html>
आउटपुट
वीडियो सीक करने से पहले और बाद में:

वीडियो सीक करने के दौरान:
