Vizard 7 » Command Index » Vizard objects » multimedia » <multimedia:av>.volume
7.7

<multimedia:av>.volume

This action will set the volume of the multimedia object

<multimedia:av>.volume(  
volume  
)  
volume
A number between 0 and 1. 1 is full volume, 0 is mute.

Remarks

This will set the volume of the audio or video file.

Return Value

None

Example

song = viz.addAudio('music.mp3')
song.play()
song.volume(0.2) # Play the file quietly

See also

<multimedia:av>.play