Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
QT streaming with initWithAttributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

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 © 2011 Apple Inc. All rights reserved.