The muted attribute on a <audio> element mutes (silences) the audio.
The audio file can be played, but without sound.
A muted attribute on a <audio> element.
The audio can be played, but without sound.
<audio controls muted>
<source src="/media/epic.mp3" type="audio/mpeg">
<source src="/media/epic.wav" type="audio/wav">
</audio>
The muted attribute mutes (silences) the audio control.
Pressing the start button will play the audio file, but without sound.
To get sound back, click the mute button (to unmute), or remove the muted attribute.
<audio muted>
Here is when muted support started for each browser:
Chrome
|
4.0 | Jan 2010 |
Firefox
|
11.0 | Mar 2012 |
IE/Edge
|
10.0 | Sep 2012 |
Opera
|
11.5 | Aug 2011 |
Safari
|
7.1 | Sep 2014 |