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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to