• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
QT streaming with initWithAttributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Basic HTTP program failed to compile
  • Next by Date: Re: navigation bar tint color issue on iOS 4.2
  • Previous by thread: Re: [iOS] How to know when AVPlayer is ready to play its remote url music
  • Next by thread: QT streaming with initWithAttributes
  • Index(es):
    • Date
    • Thread