NSMovieView: RTSP streams won't buffer?
NSMovieView: RTSP streams won't buffer?
- Subject: NSMovieView: RTSP streams won't buffer?
- From: Martin-Luc Girard <email@hidden>
- Date: Sat, 27 Jul 2002 18:40:19 -0400
Hey all!
I've discovered an aspect of NSMovieView that has me stumped:
I made a simple program. it loads a movie from an URL. three lines.
Can't mess it up too much can I? ;)
Well, the program works fine with downloadble files like mp3s and such,
but I can't get it to work with streaming media via rtsp!
here's the code with a sample URL (myMovie and myMovieView are declared
in the .h file) :
- (void) awakeFromNib
{
myMovie = [[NSMovie alloc] initWithURL:[NSURL
URLWithString:@"
rtsp://qt3.bopjet.net/yml/20724s.mov"] byReference:NO];
[myMovieView setMovie: myMovie];
[myMovieView showController:YES adjustingSize:NO];
}
What happens is this: I click the start button in the movie's
controller, and buffering will take place only as long as I hold the
button down. if I let go, the download stops and the movie doesn't play.
If I hold it for the entire buffering process, then the stream plays.
The same thing occurs if I would place [myMovieView start:self] ;
in an IBAction associated with a button.
On the other hand, if the previous line is _in_ the awakeFromNib code,
the app bounces in the dock while the stream buffers, and then
everything plays fine...
I Googled and mamasammed and couldn't find anything relating to this
particular problem... Is it something I'm doing wrong? or is it a bug
with the AppKit wrappers for Quicktime? or what?
Can any one point me to a solution?
Thank you very much!!
ML
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.