Video muted attribute
Definition and usage
muted
It sets or returns whether the audio output of the video should be muted (sound off).
This attribute reflects HTML <video> muted Attribute.
When it exists, it specifies that the audio output of the video should be muted.
Example
Example 1
Turn off the sound of the video:
document.getElementById("myVideo").muted = true;
Example 2
Check if the sound is off:
var x = document.getElementById("myVideo").muted;
Syntax
Return the muted attribute:
videoObject.muted
Set the muted attribute:
videoObject.muted = true|false
Attribute value
Value | Description |
---|---|
true|false |
Define whether the audio output of the video should be muted.
|
Technical Details
Return Value: | Boolean value, returns true if the audio output of the video is muted; otherwise returns false. |
---|---|
Default Value: | false |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 9.0 | Support | Support | Support |
Related Pages
HTML Reference Manual:HTML <video> muted Attribute