Latest web development tutorials

HTML DOM Video defaultMuted property

Video Object Reference Video Object

Examples

Default settings Video muted:

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

try it"

Definition and Usage

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

Setting this property will only change the default mute state, instead of the current. To change the current mute state, use the muted property.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Role Chrome and Safari 6 browser support defaultMuted property.


grammar

Back defaultMuted properties:

videoObject .defaultMuted

Setting defaultMuted properties:

videoObject .defaultMuted=true|false

Property Value

描述
true|false 描述了视频默认是否静音。
  • true - 指示视频默认是静音的。
  • false - 默认。指示视频默认不是静音的。

technical details

return value: Boolean value that, if the default video mute returns true, otherwise returns false.
Defaults: false


Video Object Reference Video Object