我正在 MPMovie 播放器中播放来自 URL 的视频,但一段时间后缓冲停止并且不再开始。播放电影的代码如下
NSURL *fileURL = [NSURL URLWithString:strURL];
//moviePlayerController.movieSourceType=MPMovieSourceTypeFile;
NSLog(@"url: %@",fileURL);
[moviePlayerController setContentURL:fileURL];
[self.view bringSubviewToFront:btnAddFav];
[moviePlayerController setAllowsAirPlay:YES];
moviePlayerController.fullscreen = NO;
moviePlayerController.scalingMode = MPMovieScalingModeAspectFit;
//moviePlayerController.initialPlaybackTime
[moviePlayerController prepareToPlay];
[moviePlayerController play];