Vizard 8 » Command Index » Vizard objects » multimedia » <multimedia:av>.loop
8.0

<multimedia:av>.loop

This action will set the loop mode of the multimedia object

<multimedia:av>.loop(  
mode = viz.ON  
)  
mode = viz.ON
Can be either viz.ON or viz.OFF

Remarks

If viz.ON is specified then the file will loop back to the beginning once it reaches the end. If viz.OFF is specified then the file will stop playing once it reaches the end.

Return Value

None

Example

song = viz.addAudio('music.mp3')
song.loop(viz.ON)
song.play()