我正在使用MPMoviePlayerController
从网络流式传输 http 视频文件。但是我收到错误并且视频没有流式传输。
我能得到任何帮助吗?
-(IBAction)play
{
NSString *urlString = [NSString stringWithFormat:@"<html><head><title>HTTP Live Streaming Example</title></head><body><video src=http link"];
NSURL *url = [NSURL fileURLWithPath:urlString];
_mpMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:_mpMoviePlayer];
[self.view addSubview:_mpMoviePlayer.view];
[_mpMoviePlayer release];
}
这是我的代码,我无法获得流媒体视频。