QTMovie movieWithFile takes a long time
QTMovie movieWithFile takes a long time
- Subject: QTMovie movieWithFile takes a long time
- From: Pierre-Loïc Raynaud <email@hidden>
- Date: Mon, 24 Apr 2006 10:39:03 +0200
Hi List,
I'm not sure if this should be asked to this list or the quicktime
list, but here we go :
I'm using QTMovie's +movieWithFile:error: to create a QTMovie object
from a file.
For some movies, this can be very long... I have some MPEG2 Movies
(10 min long) on which this call may last over 20 seconds.
(...)
NSString* path = [self valueForKey:@"movieURL"];
QTMovie* myMovie = [QTMovie movieWithFile:path error:&vErr];
(...)
Note that this seems to be "normal", QuickTime player is almost as
slow as my app for openning the document.
I would like to be able to provide some feedback to the user, ideally
with a progress bar. But as I don't have any reference to the QTMovie
yet, it does not seem possible using QTKit API.
Is there any way of doing this ? QuickTime Player does not show any
progress bar either.
Perhaps the Quicktime API has some callbacks that I could use and
then use QTMovie's +movieWithQuickTimeMovie ? Or would it be possible
to call QTMovie's +movieWithFile:error from a separate thread and
have an indefinite progressbar running in the main thread ? I don't
know if that call is thread safe.
Any pointers would be appreciated.
TIA.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden