Video defaultMuted Attribute

Definition and Usage

defaultMuted attribute settings or return whether the video is muted by default.

Setting this attribute will only change the default muted state, not the current state. To change the current muted state, please use muted attribute.

Example

Set the video to be muted by default:

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

Try It Yourself

Syntax

Return the defaultMuted attribute:

videoObject.defaultMuted

Set the defaultMuted attribute:

videoObject.defaultMuted = true|false

Attribute Value

Value Description
true|false

Specify 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 value, returns true if the video is muted by default; otherwise returns false.
Default Value: false

Browser Support

The numbers in the table indicate the first browser version that fully supports this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Not Supported 11.0 6.0 Support