replacement for playStopped?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kcorey
Posts: 62
Joined: Fri Nov 25, 2011 6:06 pm

replacement for playStopped?

Post by kcorey » Mon Jan 16, 2012 5:41 pm

Hi All,

I've built an app that waits for a click from a user on an img, then plays the name of the img, and then I want to automatically play another sound when the name is done playing.

On the desktop, I just use the playStopped event, and everything going exactly to plan. Of course, that's a desktop-only event.

How does one do this on iOS if the playStopped event isn't generated? I have several names all with different lengths, please don't tell me I need to do a 'send "playStopped" to me in xx milliseconds'!

Thanks,

-Ken

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: replacement for playStopped?

Post by Klaus » Mon Jan 16, 2012 6:22 pm

Hi Ken,

use the native "Player control - MPMoviePlayerController" instead of just "play "video file"!
That will send a "playerFinished" message (and more!).

Check the "iOS Release Notes" (menu: Help) for more info!


Best

Klaus

Post Reply