首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >纵向模式下的iPad视频

纵向模式下的iPad视频
EN

Stack Overflow用户
提问于 2013-01-25 14:01:18
回答 1查看 553关注 0票数 0

我在portrait mode中创建了一个iPad video,即768*1024。现在,当我转换成mp4格式的转换器转换成1024*768,即landscape mode.Is,有没有办法显示肖像视频在肖像模式或任何软件,以转换肖像视频在mp4肖像模式?

或者我必须在横向模式下重新制作视频?

我正在使用MPMoviePlayerController

提前谢谢。

EN

回答 1

Stack Overflow用户

发布于 2013-01-25 15:04:08

默认情况下,MPMoviePlayerController不再在横向中工作,因此要使其在横向中工作,您需要对视图应用转换。

代码语言:javascript
运行
复制
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幸运和快乐的编码:-)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14516223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档