title: Adding mute button for video
body: <p>I'm looking to create a mute button for a video on my page. My page has a background video with a loop and nothing else. But the sound is just very annoying after a while. I found a button to stop the video, but I can't play it again after. Also, I'm looking for a mute only button.</p>
  
  <p>So that's my HTML currently.</p>
  
  <pre><code>&lt;video autoplay id="bgvid" loop&gt;
  &lt;source src="videos/chat/chat_noir.mp4" type="video/mp4"&gt;
  &lt;/video&gt;
  
  &lt;div class="mute" onclick="document.getElementById('bgvid').pause()"&gt;
  &lt;a href="#"&gt;Activer/Désaciver le son&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have the .pause function, but how to make the video continue and only remove the sound? How to replay video or put the sound again?</p>