YouTip LogoYouTip

Prop Video Defaultmuted

HTML DOM Video defaultMuted Property

HTML DOM Video defaultMuted Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference Manual

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

HTML DOM Track Object

HTML DOM Video defaultPlaybackRate Property

Explore Further

  • Computer Science
  • Programming
  • Web Design & Development
  • Web Services
  • Web Service
  • Scripting
  • Software
  • Programming Languages
  • Development Tools
  • Scripting Languages

Video defaultMuted Property

Video Object Reference Manual Video Object

Example

Set the video to be muted by default:

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 the muted property.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The defaultMuted property is supported in Chrome and Safari 6.


Syntax

Get the defaultMuted property:

videoObject.defaultMuted

Set the defaultMuted property:

videoObject.defaultMuted=true|false

Property Values

Value Description
true|false Specifies 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: A Boolean. Returns true if the video is muted by default, otherwise false.
Default Value: false

Video Object Reference Manual Video Object

HTML DOM Track Object

HTML DOM Video defaultPlaybackRate Property

← Prop Video DefaultmutedProp Video Currenttime β†’