volume()

Sets the audio/video volume.

Calling media.volume() without an argument returns the current volume as a number in the range 0 (off) to 1 (maximum).

The parameter, val, is optional. It's a number that sets the volume from 0 (off) to 1 (maximum). For example, calling media.volume(0.5) sets the volume to half of its maximum.

उदाहरण

सिंटैक्स

volume()
volume(val)

पैरामीटर्स

val
Number:

volume between 0.0 and 1.0.

Returns

Number: current volume.
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ