The volume property sets or returns the audio volume of a video, from 0.0 (silent) to 1.0 (loudest).
Note: The <video> element is new in HTML5.
The volume property is supported in all major browsers.
Note: Internet Explorer 8 and earlier versions, do not support the <video> element.
Return the volume property:
Set the volume property:
Value | Description |
---|---|
number |
Specifies the audio volume of the video. Must be a number between 0.0 to
1.0 Example values:
|
Return Value: | A Number, representing the audio volume of the video |
---|---|
Default Value: | 1.0 |