Vizard 7 » Command Index » Vizard objects » multimedia » <multimedia:av>.setTime
7.6

<multimedia:av>.setTime

This will set the current position of the multimedia file

<multimedia:av>.setTime(  
time  
)  
time
The amount of seconds from the beginning of the file to jump to.

Remarks

This will set the current position of the audio or video file to the specified number of seconds from the beginning.

Return Value

None

Example

song = viz.addAudio('music.mp3')
song.setTime(5)
song.play() # This start playing 5 seconds into the song

See also

<multimedia:av>.getFrame
<multimedia:av>.getTime
<multimedia:av>.setFrame