I avoided replying at first because your question might be
surprisingly complicated. :) But since nobody else has, here we go:
I don't think QuickTime provides a sleek way to get the current frame
number. What is really easy to do is to get the current time a movie
is set to. Is that sufficient for what you're trying to do?
For example:
float f = ((float)movie.getTime()) / ((float)movie.getDuration());
This yields a fraction from [0,1] indicating where you are in the movie.
If you really must have the frame number, that will involving digging
through specific tracks and media samples. Let me know if that's what
you're after.
Of course, if you have a specific usage in mind that always uses a
fixed fps, then it would be really easy to deduce the frame number.
Regards,
- Jeremy
On May 30, 2008, at 5:34 AM, John Wilkinson wrote:
> Hi,
> I am going to poll a playing movie and get its current frame number.
>
> What method do I use for this?
>
> Regards,
> John.
>
> John Wilkinson BSc(HONS)
> Principle Test Engineer
> NXP Semiconductors
> Millbrook Industrial Estate
> Southampton
> Hampshire
> SO15 0DJ
> UK
>
> Tel: +44 (0) 2380 312510
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> QuickTime-java mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/quicktime-java/email@hidden
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
This email sent to email@hidden