Javascript examples for DOM HTML Element:Video
Video muted Property - Find out if the sound is turned off:
<!DOCTYPE html> <html> <body> <video id="myVideo" width="320" height="240" controls muted> <source src="your.mp4" type="video/mp4"> <source src="your.ogg" type="video/ogg"> Your browser does not support the video tag. </video>// w ww. jav a 2 s.c o m <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myVideo").muted; document.getElementById("demo").innerHTML = x; } </script> </body> </html>