• 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
QTMovie movieWithFile takes a long time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: QTMovie movieWithFile takes a long time
      • From: "douglas a. welton" <email@hidden>
  • Prev by Date: Re: How do I implement a splash window
  • Next by Date: Re: Superimpose a NSTextField over NSImageView?
  • Previous by thread: Re: KVO/dealloc problems
  • Next by thread: Re: QTMovie movieWithFile takes a long time
  • Index(es):
    • Date
    • Thread