Video defaultMutedProperty

Video 对象参考手册Video Object

Examples

Set video default muted:

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

Try it Yourself »

Definition and Usage

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

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


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Chrome and Safari 6 browsers support the defaultMuted property.


Syntax

Return the defaultMuted property:

videoObject.defaultMuted

Set the defaultMuted property:

videoObject.defaultMuted=true|false

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


Video 对象参考手册Video Object Other Extensions