Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Video defaultMuted Property

Video defaultMuted property

Video Object Reference The Video object

Example

Set the video to be muted by default:

document.getElementById("myVideo").defaultMuted = true;

Try it »


Definition and Usage

The defaultMuted property sets or returns whether the audio/video is muted by default.

Setting this attribute only changes the default mute state, not the current one. To change the current mute state, use muted attribute.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Chrome and Safari 6 browsers support the defaultMuted property.


Syntax

Return the defaultMuted attribute:

videoObject

.defaultMuted

Set the defaultMuted attribute:

videoObject

.defaultMuted=true|false

Attribute values

Value Description
true|false Describes whether the video is muted by default.
  • true - Indicates that the video is muted by default.
  • false - Default. Indicates that the video is not muted by default.
  • |

    Technical Details

    Return Value: Boolean, returns true if the video is muted by default, otherwise returns false.
    Default value: false

    Video Object Reference The Video object