• 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
Re: QTKit and audio streaming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTKit and audio streaming


  • Subject: Re: QTKit and audio streaming
  • From: Tim Monroe <email@hidden>
  • Date: Sun, 15 May 2005 16:56:40 -0700


On May 15, 2005, at 2:53 PM, Pascal Vantrepote wrote:

I'm trying to play mp3 streaming using QTKit.
It's working, but only 10 seconds.

This my sample code.

    NSURL* url = [[NSURL alloc] initFileURLWithPath:@"listen.pls"];
    NSMovie current = [[NSMovie alloc] initWithURL:url byReference:NO];

    if (current) {

NSError* qtError;
QTMovie movie = [[QTMovie alloc] initWithQuickTimeMovie:[current
QTMovie] disposeWhenDone:NO error:&qtError];
if (movie != nil) {
[movie play];
}
}


I have tried with NSSound, it doesn't do anything. If someone have idea.
Thanks for your help.

Not sure why you are mixing NSMovie and QTMovie. That seems like a recipe for disaster. Can you replace initWithURL:byReference: by the equivalent QTMovie call? Does this work?


NSURL *url = [[NSURL alloc] initFileURLWithPath:@"listen.pls"];
NSError *qtError;
QTMovie *movie = [[QTMovie alloc] initWithURL:url error:&qtError];


        [movie play];



Tim Monroe
QuickTime Engineering
email@hidden

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


  • Prev by Date: QTKit and audio streaming
  • Next by Date: Spotlight not indexing files
  • Previous by thread: QTKit and audio streaming
  • Next by thread: Re: QTKit and audio streaming
  • Index(es):
    • Date
    • Thread