Mailing Lists: Apple Mailing Lists

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

QuickTime movie from a URL w/QTKit?



I'm trying to open a 6-second QuickTime movie from a URL, using QTKit. I do get a QTMovie object instantiated, but it contains invalid attributes.

Here's my code snippet:

NSError *error;
NSURL *url = [[NSURL URLWithString:@"http:// quicktime.oit.duke.edu/news/sprites.mp4"] standardizedURL];
QTMovie *qtMovie = [[QTMovie movieWithURL:url error:&error ] retain];
NSLog(@"-- Opened movie %@ with error %@.\n\t\tMovie is % @",url,error,qtMovie);


Viewer[3639] -- Opened movie http://quicktime.oit.duke.edu/news/ sprites.mp4 with error (null).
Movie is <QTMovie: 0x30fa00 time scale = 600, duration = 2147483647, rate = 0.000000, tracks = { 0x9ca02f0 }>


The info in the QTMovie object is obviously bogus, yet it returns no error. Issuing -currentFrameImage to it returns nil. The original movie has these specs:

Format:   H.264, 320 x 240, Millions
FPS:      15
Duration: 00:00:06.90
Size:     320 x 240  pixels

What am I doing wrong?

(OSX 10.4.5, QT 7.0.4, ObjC, Cocoa, QTKit, Xcode 2.2)

Roland

_______________________________________________
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.