Vizard 7 » Command Index » Vizard objects » multimedia » <multimedia:av>.getDuration
7.5

<multimedia:av>.getDuration

Returns the duration of the media file

<multimedia:av>.getDuration()  

Remarks

This action will return the duration of the audio or video file in seconds.

Return Value

Seconds

Example

song = viz.addAudio('music.mp3')
print('The song is',song.getDuration(),'seconds long')