volume property
[This documentation is preliminary and is subject to change.]
Gets or sets the volume level for audio portions of the media element.
![]() ![]() |
Syntax
HRESULT value = object.put_volume(float v);HRESULT value = object.get_volume(float* p);
Property values
Type: float
The current playback volume as a number in the range of 0.0 to 1.0 (quietest to loudest).
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.10
Remarks
Volume ranges do not need to be linear. When muted is applied, this property is ignored.
Build date: 1/26/2012
.png)
.png)