我正在从库中选择一个视频。视频不在 iphone 4s(ios5) 中播放,它在 iphone 4(ios4) 中播放。视频为 .mov 格式。我正在静态拍摄 mp4 视频,它正在播放。有没有原因?请给任何建议。提前致谢
movieplayer=[[MPMoviePlayerController alloc] initWithContentURL:videourl];
NSLog(@"url--%@",videourl);
if([movieplayer respondsToSelector:@selector(view)])
{
movieplayer.controlStyle = MPMovieControlStyleFullscreen;
[movieplayer.view setFrame:self.view.bounds];
[self.view addSubview:movieplayer.view];
movieplayer.shouldAutoplay=true;
[movieplayer play];
}
它显示黑屏