ビデオを再生する iPhone でプレーヤーを開発する必要があります。私は、ビデオ エンコーディングと信号エンコーディングのバックグラウンドがあまりありません。いくつかの .mp4 および .mov ファイルをテストすると、iPhone の画面サイズに適合する解像度のビデオのみが再生でき、それより大きいサイズは再生できないことがわかります。その場合、iPhone ですべてのムービー サイズを再生する解決策はありますか。教えてください。よろしくお願いします。動画を再生するコードは次のとおりです。
NSURL *url = [NSURL URLWithString:@"http://192.65.123.108/test1.mov"];
//this movie has size of 480x272 can be played, other larger resolution cannot be played
_moviePlayer = [[MPMoviePlayerController alloc]
initWithContentURL:url];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:_moviePlayer];
_moviePlayer.controlStyle = MPMovieControlStyleDefault;
_moviePlayer.shouldAutoplay = YES;
[self.view addSubview:_moviePlayer.view];
[_moviePlayer setFullscreen:YES animated:YES];