Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QTKit + Fairplay = Error?



I'm trying to play an episode of The Office that I bought from iTMS. Here is my code:

================================
NSError *nsErr = nil;

/* Try to load the movie file */
if ([QTMovie canInitWithURL:aFile])
theMovie = [QTMovie movieWithURL:aFile error:&nsErr]; // debugger fails here
NSAssert(nsErr == nil, [@"Error loading movie: " stringByAppendingString:[nsErr localizedDescription]]);
[theMovie retain];
================================


This works for an episode of Family Guy that I ripped from DVD, and also works for a TMBG music video from their website. When I try to run this on "The Office", I get the following in my run log:

================================
2005-12-26 00:52:50.767 Cinema[1181] *** Assertion failure in - [FullScreenPlayer setMediaFile:], /Users/mehaase/Cinema/ FullScreenPlayer.m:21
2005-12-26 00:52:50.767 Cinema[1181] Error loading movie: an unknown error occurred
================================


If I step through the above code in GDB, the program exits with a return value of 45 on the line with the comment "debugger fails here". (As a side note, how do I figure out what exit codes mean?)

I've opened "The Office" in QuickTime player so I know that QuickTime can decode the Fairplay DRM, but I guess that decoding ability isn't present in QTKit yet. Is this correct? Any ideas on potential work- arounds?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.