FROM : Tim Monroe
DATE : Mon May 16 03:51:56 2005
On May 11, 2005, at 10:25 AM, Christian Schneider 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.
>
> 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.
>
> The reason for my asking is that I need to display the movie's current
> time (plus a certain offset) in a text field.
Sorry to take so long to answer this; the
QTMovieTimeDidChangeNotification is fired whenever the movie time
changes to a time ***other than what it would be during normal
playback***. So it's not fired every frame. Some examples are: the user
clicks in the movie controller bar to change the movie time, or a wired
action changes the movie time.
I think an NSTimer is the solution you are looking for.
I'll make sure the documentation is updated to reflect this more
refined notion of time-did-change.
HTH,
Tim Monroe
QuickTime Engineering
<email_removed>
DATE : Mon May 16 03:51:56 2005
On May 11, 2005, at 10:25 AM, Christian Schneider 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.
>
> 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.
>
> The reason for my asking is that I need to display the movie's current
> time (plus a certain offset) in a text field.
Sorry to take so long to answer this; the
QTMovieTimeDidChangeNotification is fired whenever the movie time
changes to a time ***other than what it would be during normal
playback***. So it's not fired every frame. Some examples are: the user
clicks in the movie controller bar to change the movie time, or a wired
action changes the movie time.
I think an NSTimer is the solution you are looking for.
I'll make sure the documentation is updated to reflect this more
refined notion of time-did-change.
HTH,
Tim Monroe
QuickTime Engineering
<email_removed>
| 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

