FROM : Christian Schneider
DATE : Wed May 11 21:14:39 2005
Marco,
thanks for your answer.
I reverted to using the callback mechanism in QT's movie controller
which actually is pretty straight forward. If anybody's interested in
the code, mail me.
chris
On 5/11/05, Marco Scheurer <<email_removed>> wrote:
> > can anybody tell me, when QTMovieTimeDidChangeNotification is fired? I
> > was hoping it will be posted, when the timecode of a movie is changed,
> > that is as a new frame is being displayed but that doesn't seem to be
> > the case.
>
> As a rule of thumb: not when you would expect. For instance if you
> have a movie, a selection, "plays selection only" and you play the
> notification will be sent *before* any frame is displayed. If you ask
> the movie for its current time upon receiving the notification you'll
> see that it has not changed! Seems pretty useless as it is now, if
> we're not mistaken.
>
> > Is there another way (*except using the callback mechanism in the
> > standard quicktime controller*) to be notified of a movie's progress?
> > Also, I'd prefer not to use an NSTimer as that will fire even when the
> > movie's not playing.
>
> We ended up using a Timer. You can always start and stop your timer.
>
> marco
>
>
> Marco Scheurer
> Sen:te, Lausanne, Switzerland http://www.sente.ch
>
>
DATE : Wed May 11 21:14:39 2005
Marco,
thanks for your answer.
I reverted to using the callback mechanism in QT's movie controller
which actually is pretty straight forward. If anybody's interested in
the code, mail me.
chris
On 5/11/05, Marco Scheurer <<email_removed>> wrote:
> > can anybody tell me, when QTMovieTimeDidChangeNotification is fired? I
> > was hoping it will be posted, when the timecode of a movie is changed,
> > that is as a new frame is being displayed but that doesn't seem to be
> > the case.
>
> As a rule of thumb: not when you would expect. For instance if you
> have a movie, a selection, "plays selection only" and you play the
> notification will be sent *before* any frame is displayed. If you ask
> the movie for its current time upon receiving the notification you'll
> see that it has not changed! Seems pretty useless as it is now, if
> we're not mistaken.
>
> > Is there another way (*except using the callback mechanism in the
> > standard quicktime controller*) to be notified of a movie's progress?
> > Also, I'd prefer not to use an NSTimer as that will fire even when the
> > movie's not playing.
>
> We ended up using a Timer. You can always start and stop your timer.
>
> marco
>
>
> Marco Scheurer
> Sen:te, Lausanne, Switzerland http://www.sente.ch
>
>
| Related mails | Author | Date |
|---|---|---|
| Christian Schneide… | May 11, 14:08 | |
| Marco Scheurer | May 11, 20:58 | |
| Christian Schneide… | May 11, 21:14 | |
| Tim Monroe | May 16, 03:51 | |
| Christian Schneide… | May 17, 10:47 |






Cocoa mail archive

