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

वीडियो को रोकने के लिए क्लिक करने के बाद:
