的MPMoviePlayerController不再景观默认工程,以便使其在景观工作,你需要申请转换来的观点。
UIView * playerView = [moviePlayerController view];
[playerView setFrame: CGRectMake(0, 0, 480, 320)];//iPhone
CGAffineTransform landscapeTransform;
landscapeTransform = CGAffineTransformMakeRotation(90*M_PI/180.0f);
landscapeTransform = CGAffineTransformTranslate(landscapeTransform, 80, 80);
[playerView setTransform: landscapeTransform];
In addition, if you want the regular full screen controls, use the following sample.
moviePlayerController.fullscreen = TRUE;
moviePlayerController.controlStyle = MPMovieControlStyleFullscreen;
这是您的信息“playing a video with MPMoviePlayerController in Portrait WITHOUT Private API-Will get rejected by Apple”。好运气和幸福的编码:-)
您创建视频或转换视频?...我没有看到编码线路单。 .paste编码部分,以便我们可以了解你正在尝试做什么..你正在使用任何私人API? –