Page 1 of 1

End of video/audio file detection

Posted: Thu Jul 13, 2006 9:39 am
by lbtony
If I use the "play" command to play a file, how I can detect it's reached the end of the file? Because the kind of thing I want to do is to tell the program to play the next media file or do something else when it has finished playing a media file.

What's the case if I use the player and the "start player" command???

Thankssss

Posted: Thu Jul 13, 2006 11:07 am
by Benedikt.Seidl
tryed the "playstopped" message?

SEIDL.

Posted: Thu Jul 13, 2006 2:43 pm
by lbtony
What if i was using the "play" command but not the player??

Posted: Thu Jul 13, 2006 4:38 pm
by BvG
from the playstopped entry of the runrev documentation:
When an audio clip or video clip is playing, a temporary player is created for it. When the clip is finished, the playStopped message is sent to it.
so you can trap the message on the card or the stack level for audio clips.