Play a list of videos

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
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Play a list of videos

Post by maxs » Fri Oct 18, 2013 5:44 am

How does Livecode know a video is finished so it can play the next video?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4000
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Play a list of videos

Post by bn » Fri Oct 18, 2013 9:51 am

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

Post Reply

Return to “Multimedia”