我在portrait mode中创建了一个iPad video,即768*1024。现在,当我转换成mp4格式的转换器转换成1024*768,即landscape mode.Is,有没有办法显示肖像视频在肖像模式或任何软件,以转换肖像视频在mp4肖像模式?
或者我必须在横向模式下重新制作视频?
我正在使用MPMoviePlayerController。
提前谢谢。
发布于 2013-01-25 15:04:08
默认情况下,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;这是给你的信息"".Good幸运和快乐的编码:-)
https://stackoverflow.com/questions/14516223
复制相似问题