Вот такой код приводит к ошибке
- (void)viewDidLoad
{
[super viewDidLoad];
NSURL *streamUrl = [NSURL URLWithString:@"rtp://@238.xx.xx.xx:1234"];
playerController = [[MPMoviePlayerController alloc] initWithContentURL:streamUrl];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:nil];
[playerController setControlStyle:MPMovieControlStyleFullscreen];
[playerController setMovieSourceType:MPMovieSourceTypeStreaming];
[playerController setFullscreen:YES];
[self.view addSubview:playerController.view];
[playerController.view setFrame: self.view.bounds];
[playerController prepareToPlay];
[playerController play];
}
- (void) moviePlayBackDidFinish:(NSNotification*)notification {
NSError *error = [[notification userInfo] objectForKey:@"error"];
if (error) {
NSLog(@"Did finish with error: %@", error);
}
}
2013-10-21 20:54:16.812 StreamPlayer[2201:60b] _itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;
}
2013-10-21 20:54:16.825 StreamPlayer[2201:60b] Did finish with error: Error Domain=MediaPlayerErrorDomain Code=-1 «unknown error» UserInfo=0x16d7a0e0 {NSLocalizedDescription=unknown error}
2013-10-21 20:54:16.914 StreamPlayer[2201:60b] _itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;
}
Подскажите или направьте правильным поисковым запросом, как проигрть rtp multicast поток в ios?
Может ли это стандартный MPMoviePlayerController, или какой сторонней либой пользоваться надо?