HTML DOM Video defaultMuted property
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
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 |
描述了视频默认是否静音。
|
technical details
return value: | Boolean value that, if the default video mute returns true, otherwise returns false. |
---|---|
Defaults: | false |
Video Object