Video defaultMuted eigenschap

Definitie en gebruik

defaultMuted eigenschap instellen of teruggeven of de video standaard dempt is.

Het instellen van deze eigenschap wijzigt alleen de standaard dempt status, niet de huidige status. Om de huidige dempt status te wijzigen, gebruik dan muted eigenschap.

Voorbeeld

Stel de video in op standaard dempt:

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

Probeer het zelf uit

Syntax

Geef de eigenschap defaultMuted terug:

videoObject.defaultMuted

Stel de eigenschap defaultMuted in:

videoObject.defaultMuted = true|false

Eigenschapswaarde

Waarde Beschrijving
true|false

Regel of de video standaard dempt is.

  • 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 to fully support this attribute.

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