The HTMLMediaElement.muted
indicates whether the media
element muted.
Syntax
var isMuted = audioOrVideo.muted
audio.muted = true;
Value
A Boolean
. true
means muted and false
means
not muted.
Example
var obj = document.createElement('video');
console.log(obj.muted); // false
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'HTMLMediaElement.muted' in that specification. |
Living Standard | |
HTML5 The definition of 'HTMLMediaElement.muted' in that specification. |
Recommendation |
Browser compatibility
BCD tables only load in the browser
See also
- The interface defining it,
HTMLMediaElement
. HTMLMediaElement.defaultMuted
HTMLMediaElement.volume