End of video/audio file detection

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

End of video/audio file detection

Post by lbtony » Thu Jul 13, 2006 9:39 am

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

Benedikt.Seidl
Posts: 9
Joined: Sat Apr 08, 2006 3:54 pm

Post by Benedikt.Seidl » Thu Jul 13, 2006 11:07 am

tryed the "playstopped" message?

SEIDL.

lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

Post by lbtony » Thu Jul 13, 2006 2:43 pm

What if i was using the "play" command but not the player??

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Post by BvG » Thu Jul 13, 2006 4:38 pm

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.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply

Return to “Multimedia”