我使用MPMoviePlayerController
播放HLS
即video streaming
它在正常和正常的网络上工作正常(WIFI,3G)
但在慢速网络(2G)
上无法正常工作。下面是相同的一段代码。 同样在缓慢的网络seekbar是造成问题,它向上移动和播放器显示空白屏幕。视频流问题
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] init];
player.allowsAirPlay = YES;
[self.view addSubview:player.view];
player.view.frame = CGRectMake(5.0, 64.0, [[UIScreen mainScreen] bounds].size.width - 10.0, viwVideo.frame.size.height - 10.0);
player.controlStyle = MPMovieControlStyleDefault;
player.movieSourceType = MPMovieSourceTypeFile;
[player setContentURL:[NSURL URLWithString:@"http://techxvweb.fr/html5/AppleOutput/2012-03-10-j23-dax-smr-mt1-m3u8-aapl.ism/manifest(format=m3u8-aapl)
"]];
[player play];
2克的典型带宽为250kbps的。视频流的比特率是多少? –
约400-4700 kbps是视频的birate。这是关注点吗? –
@SvetlinMladenov:我知道吗? –