DOM Properties

HTMLMediaElement.muted

Read/write. Represents current audio muting. Unlike defaultMuted it is current playback state. Muting may influence autoplay policy but does not guarantee that playback can start. Example result: true.

Formal Syntax & Structure

html syntaxhtml
element.muted

Return Value

boolean

Property value. Read/write.

Working Example

Example Snippethtml
<video id="demo" controls></video><p>  Result:  <output id="result"></output></p><script>  const e = document.getElementById('demo');  const result = value => { document.getElementById("result").textContent = String(value); };  e.muted=true; result(e.muted);</script>
HTML Reference