Easy Tutorial
❮ Jsref Getutchours Prop Date Autofocus ❯

Video volume Property

Video Object

Example

Set the video volume to 20%:

document.getElementById("myVideo").volume = 0.2;

Definition and Usage

The volume property sets or returns the current volume of the video, ranging from 0.0 (mute) to 1.0 (maximum volume).

Note: The <video> element is new in HTML5.


Browser Support

All major browsers support the volume property.

Note: The <video> element is not supported in Internet Explorer 8 and earlier versions.


Syntax

Return the volume property:

Set the volume property:

Property Values

Value Description
number Specifies the current volume of the video. It must be a number between 0.0 and 1.0. <br>Example: 1.0 is the highest volume (default)<br>0.5 is half volume (50%)<br>0.0 is mute

Technical Details

Return Value: Number, representing the volume of the video
Default Value: 1.0
--- ---
❮ Jsref Getutchours Prop Date Autofocus ❯