View Single Post
  #4  
Old 05-10-2007, 06:08 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

In Vizard 3.0 you can query the state of an audio object. So you can create a timer that checks the state and performs some code when the audio stops. Here is sample code to check the state of an audio object:
Code:
a = viz.add('myaudio.mp3')
.
.
.
state = a.getState()
if state == viz.MEDIA_STOPPED:
    print 'Audio is stopped'
Reply With Quote