After testing a few variations, indeed it appears (hat tip to Roland) that I was missing the 'NSDictionary.dictionaryWithDictionary_()' and importing Quartz to access it.
On Jan 13, 2010, at 5:16 PM, Jep Hill wrote:
> 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,
> sent via mobile
> On Jan 13, 2010, at 3:09 PM, Ronald Oussoren <ronaldoussoren@...>
>> 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
>> 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 *
>> movie, error = QTMovie.movieWithAttributes_error_(
>> '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.
>>> Anyone have any luck with this?
>>> (Running Snow Leopard 10.6.2, Python 2.6.4, and using PyObjC-QTKit
>>> All help is very much appreciated.
>>> 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
>>> Pyobjc-dev mailing list