Re: [Pyobjc-dev] QTKit.QTMovie.movieWithAtrributes_error_ -- Working for anyone in QTKit 2.2?
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-01-13 20:10:17
|
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 |