0

Possible Duplicate:
How to mute an html5 video player

What is the proper way to create an HTML5 video mute button nowadays? I've tried the other answer on this site, but it doesn't work.

Here's my HTML for the link:

<a href="#" class="muted">Mute</a>

My video:

<video id="video" controls poster="video.jpg" width="600" height="120" >
<source src="images/recvid.mp4" type="video/mp4" />
<source src="images/recvid.webm" type="video/webM" />
<source src="images/recvid.ogv" type="video/ogg" />
<p>Your browser does not support the video tag.</p>
</video>

and my jQuery:

 $('.muted').click(function() {
   $('#video').prop('muted', true);
     });
Community
  • 1
  • 1
Nick D
  • 251
  • 1
  • 7
  • 20

0 Answers0