• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QTMovie movieWithFile takes a long time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTMovie movieWithFile takes a long time


  • Subject: Re: QTMovie movieWithFile takes a long time
  • From: "douglas a. welton" <email@hidden>
  • Date: Mon, 24 Apr 2006 09:42:31 -0400

GetMovieLoadState() is your friend...

On Apr 24, 2006, at 4:39 AM, Pierre-Loïc Raynaud wrote:

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
References: 
 >QTMovie movieWithFile takes a long time (From: Pierre-Loïc Raynaud <email@hidden>)

  • Prev by Date: Cocoa interface with Quartz composer
  • Next by Date: Re: Screenshot code for Tiger
  • Previous by thread: QTMovie movieWithFile takes a long time
  • Next by thread: Re: QTMovie movieWithFile takes a long time
  • Index(es):
    • Date
    • Thread