On Nov 9, 2009, at 2:54 AM, "Mr. Gecko" wrote:

Hello, I'm trying to find out how much the QTMovie have loaded so I
can get a Percent of it and draw a progress bar. I know it's possible
as QTMovieView's controls shows gray in the middle of how much was
loaded.
I've done some looking around and found this hidden method of QTMovie
loadedRanges and it's a NSArray with an NSConcreteValue, don't know
how to get the value of it, but if I knew, I could probably find the
percentage.


If you had looked farther down in QTMovie_Private.h, you would have seen this:

    - (QTTime)maxTimeLoaded;

One might naively assume that it corresponds to the C level API GetMaxTimeLoaded.

This is a private method on QTMovie and hence I cannot counsel you to use it in a shipping app. But I can say that we have gotten more than one request to make this functionality public in QTKit. You might experiment with that method to see whether it provides the information you need.


Tim Monroe
QuickTime Engineering

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to