ライブラリからビデオを選択しています。ビデオは 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];
}
黒い画面が表示されます