Re: QTKit and audio streaming
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