QT streaming with initWithAttributes
QT streaming with initWithAttributes
- Subject: QT streaming with initWithAttributes
- From: Leonardo <email@hidden>
- Date: Fri, 03 Dec 2010 17:07:40 +0100
- Thread-topic: QT streaming with initWithAttributes
Hi,
I successfully create a QT streaming using initWithAttributes. The movie
data is embedded within a "local" file, so I define (on the attributes) the
offset and the length of the movie data within this file. Everything works
well. But I can't get this to work when the file is over the internet. I
always get the error: "Not enough movie data is available."
Any idea? I build with sdk 10.5 with Xcode 3.2.3.
My code:
fileURL = [NSURL URLWithString:@"http://www.mysite.com/file.mox"];
mStreamingDict = [NSDictionary dictionaryWithObjectsAndKeys:
fileURL, @"QTMovieURLAttribute",
yesNum, @"QTMovieOpenAsyncOKAttribute",
offsetNum, @"QTMovieFileOffsetAttribute",
lengthNum, @"QTMovieDataSizeAttribute", nil];
mQTMovie = [[QTMovie alloc] initWithAttributes:
mStreamingDict error:&error];
Regards
-- Leonardo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden