これを試すことができるサンプルコードを次に示します。回転後、メディアプレーヤービューをself.viewの中央に設定する必要があります。ここにサンプルコード...最初にMediaPlayerフレームワークを追加する必要があります....
NSString* moviePath = [[NSBundle mainBundle] pathForResource:@"PATRON_LOGO_3" ofType:@"mp4"];
NSURL* movieURL = [NSURL fileURLWithPath:moviePath];
MPMoviePlayerController *playerCtrl = [[MPMoviePlayerController alloc]initWithContentURL:movieURL];
playerCtrl.scalingMode = MPMovieScalingModeFill;
playerCtrl.controlStyle = MPMovieControlStyleNone;
[playerCtrl.view setCenter:CGPointMake(240, 160)];
[playerCtrl.view setTransform:CGAffineTransformMakeRotation(M_PI/2)];
playerCtrl.view.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:playerCtrl.view];
[playerCtrl play];
私はそれがうまくいくと思う、これはポートレート用のランドスケープモード用で、ポートレートフレームに従ってフレームを設定する必要がある..
playerCtrl.view.frame = CGRectMake(0, 0, 480, 320);
その後、ビューの中心に設定する必要があります。