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」。好運氣和幸福的編碼:-)

相關問題