How to set the audio output of the video to mute in HTML?

HTMLWeb DevelopmentFront End Technology

Use the muted attribute to set the audio output of the video to mute. You can try to run the following code to implement muted attribute −

Example

<!DOCTYPE HTML>
<html>
   <body>
      <video width = "300" height = "200" controls muted>
         <source src = "/html5/foo.ogg" type = "video/ogg" />
         <source src = "/html5/foo.mp4" type = "video/mp4" />
         Your browser does not support the video element.
      </video>
   </body>
</html>
raja
Published on 14-Mar-2018 09:52:43
Advertisements