Code:
NSDictionary *att = [NSDictionary dictionaryWithObjectsAndKeys:[NSURL URLWithString:@"http://216.218.147.60:9014"], QTMovieURLAttribute, [NSNumber numberWithBool:YES], QTMovieOpenForPlaybackAttribute, nil];
NSDictionary *att = [NSDictionary dictionaryWithObjectsAndKeys:[NSURL URLWithString:@"http://216.218.147.60:9014"], QTMovieURLAttribute, [NSNumber numberWithBool:YES], QTMovieOpenForPlaybackAttribute, nil];
QTMovieOpenForPlaybackAttribute on 10.6 is really just @"QTMovieOpenForPlaybackAttribute" so you can plug that in directly. For 10.5 there is no alternative so it shouldn't matter if you pass in an attribute that QTMovie doesn't understand.
NSDictionary *att = [NSDictionary dictionaryWithObjectsAndKeys:[NSURL URLWithString:@"http://216.218.147.60:9014"], QTMovieURLAttribute, [NSNumber numberWithBool:YES], nil];
2010-02-21 23:17:33.957 Radio Tool X[23654:a0f] +[NSDictionary dictionaryWithObjectsAndKeys:]: second object of each pair must be non-nil. Or, did you forget to nil-terminate your parameter list?
Look at the arguments again. You're passing an uneven number of objects and keys.
NSDictionary *att = [NSDictionary dictionaryWithObjectsAndKeys:[NSURL URLWithString:@"http://76.73.79.82:8688"], QTMovieURLAttribute, nil];
[NSNumber numberWithBool:YES], QTMovieOpenForPlaybackAttribute
Error Domain=NSOSStatusErrorDomain Code=-2048 UserInfo=0x10a2140 "The file is not a movie file."
Got the error:
Code:Error Domain=NSOSStatusErrorDomain Code=-2048 UserInfo=0x10a2140 "The file is not a movie file."
I don't know how to solve that![]()
@"http://216.218.147.60:9014"
This is what you have as the URL:
Code:@"http://216.218.147.60:9014"
Unless that server is responding with a movie file when it's given no pathname or filename, you may need a little more to the URL.
NSDictionary *att = [NSDictionary dictionaryWithObjectsAndKeys:[NSURL URLWithString:@"http://78.129.226.12:8700"], QTMovieURLAttribute, nil];
movie = [[QTMovie alloc]initWithAttributes:att error:&error];
What about using the URL http://216.218.147.60:9014/listen.pls ?
2010-02-22 18:14:08.360 Radio Tool X[26162:a0f] Tried to use QTMovie method quickTimeMovie, which is not allowed when QTMovieOpenForPlaybackAttribute is YES.