Re: [Pyobjc-dev] QTKit.QTMovie.movieWithAtrributes_error_ -- Working for anyone in QTKit 2.2?
Brought to you by:
ronaldoussoren
From: Jep H. <je...@gm...> - 2010-01-13 22:16:29
|
Hi Ronald, Thank you for responing. So that doesn't error out on you? If you 'print movie' does it return an object? It appears that you nested your attributes -- rather than predifining them in a python dictionary and then passing them to the 'QTMovie.movieWithAttributes_error_' method -- could this be the critical difference? I'll try this as soon as I get home and report my findings. Thanks again, -Jep sent via mobile On Jan 13, 2010, at 3:09 PM, Ronald Oussoren <ron...@ma...> wrote: > > On 13 Jan, 2010, at 3:21, Jep Hill wrote: > >> I'm able to initialize quicktime movie objects with several methods >> however I'm not able to successfully implement >> QTKit.QTMovie.movieWithAtrributes_error_ > > Implement or use? > > This seems to work from the command-line (but I haven't interacted > with the movie): > > from Quartz import * > from QTKit import * > > path='/path/to/a/movie.mov' > movie, error = QTMovie.movieWithAttributes_error_( > NSDictionary.dictionaryWithDictionary_({ > 'QTMovieURLAttribute': NSURL.fileURLWithPath_(path), > 'QTMovieOpenForPlaybackAttribute': True, > 'QTMovieOpenAsyncRequiredAttribute': True, > }), None) > > > The link below is an Apple example that uses this API, although in > ObjC. Translating it into Python should be fairly straightforward. > > <http://developer.apple.com/mac/library/samplecode/MyMediaPlayer/index.html#//apple_ref/doc/uid/DTS40009203 > > > > Ronald >> >> Anyone have any luck with this? >> >> (Running Snow Leopard 10.6.2, Python 2.6.4, and using PyObjC-QTKit >> 2.2) >> >> All help is very much appreciated. >> >> Cheers, >> Jep >> --- >> --- >> --- >> --------------------------------------------------------------------- >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast >> and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |