纵向模式下的 iPad 视频



我在portrait mode中做了一个iPad video,即 768*1024 .现在,当我将其转换为mp4格式时,转换器会将其转换为1024*768landscape mode.有没有办法在纵向模式下显示纵向视频或任何软件可以在mp4纵向模式下转换纵向视频?

或者我将不得不以横向模式再次制作视频?

我正在使用MPMoviePlayerController.

提前谢谢。

默认情况下,

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;

这是供您参考"在没有私有API的情况下纵向播放MPMoviePlayerController的视频 - 将被Apple拒绝"。祝你好运和快乐编码:-)

最新更新