0

我在portrait mode中制作了iPad video,即768*1024。现在,当我将它转换为mp4格式时,转换器会将其转换为1024*768,例如landscape mode。是否有任何方法可以在纵向模式下显示纵向视频或以任何软件在mp4纵向模式下转换纵向视频?纵向模式下的iPad视频

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

在此先感谢。

+0

您创建视频或转换视频?...我没有看到编码线路单。 .paste编码部分,以便我们可以了解你正在尝试做什么..你正在使用任何私人API? –

回答

0

的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”。好运气和幸福的编码:-)

相关问题