Page 1 of 1

Play a list of videos

Posted: Fri Oct 18, 2013 5:44 am
by maxs
How does Livecode know a video is finished so it can play the next video?

Re: Play a list of videos

Posted: Fri Oct 18, 2013 9:51 am
by bn
Hi Max,

if you use a player object then from the dictionary:
playStopped
Summary:
Sent to a player when it stops playing.

Examples:
on playStopped
hide the target
show button "Start Playing"
end playStopped

Handle the playStopped message if you want to perform a task when a movie or sound finishes playing.
see also playPaused and playStarted.

Note that these messages are sent to the player object. So you might want to place the handlers in the player script or card script.

You may also like to look at

Duration
currentTime
currentTimeChanged

Kind regards
Bernd