How to see if player is "done"?
Phil Davis
davis.phil at comcast.net
Tue Aug 3 01:49:02 EDT 2004
Jacque, Trevor, Scott -
Thanks for all the great feedback!
Phil
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of J. Landman
> Gay
> Sent: Monday, August 02, 2004 2:46 PM
> To: How to use Revolution
> Subject: Re: How to see if player is "done"?
>
>
> On 8/2/04 4:08 PM, Phil Davis wrote:
>
> > Hi List -
> >
> > Some context:
> >
> > When using VIDEOCLIPS (embedded movies), we have two language features
> > available that help us detect whether a clip is still playing:
> > - the "movie" function
> > - the "playStopped" message
> >
> > When using PLAYERS to play movies (referenced files), we
> apparently have
> > only one such feature available:
> > - the "playStopped" message
>
> You should be able to use all the messages, regardless of where the
> actual movie file is stored. The Player object acts the same regardless
> (or it is supposed to.) I have an app that loads QT movies from disk and
> it uses all the standard Player messages.
>
>
> > My questions:
> >
> > 1) Is "playStopped" truly the only non-workaround way you can
> detect the
> > current 'play' status of a player?
>
> If you aren't getting this message, file a bug report. It got broken in
> the past, then it got fixed, then it got broken and fixed again, and now
> I'm not sure what its status is (but I thought it was okay now.)
>
> If you just need to see if the movie is running or not, then check the
> paused property, as others suggested.
>
> >
> > 2) If so, what is your most reliable workaround way of detecting this?
>
> In addition to the other suggestions, another way is to set the
> callbacks of a movie. I've used these in the past, setting the callback
> time to the duration of the movie. In effect, it creates my own custom
> "playStopped" message.
>
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list