1
A
回答
1
您可以。請參閱Erica Sadun的文章
http://blogs.oreilly.com/iphone/2008/11/the-joys-of-vertical-audio.html。
但請注意,關於這樣做的方法沒有Apple的文檔,因此不建議。
1
@interface MPMoviePlayerController (extend)
-(void)setOrientation:(int)orientation animated:(BOOL)value;
@end
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieUR];
[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
if (moviePlayer)
{
[self.moviePlayer play];
}
實現上面的代碼。你會得到你想要的。
希望有所幫助。
薩加爾。
看看下面的問題。 它有相同的解決方案。
4
如果使用[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
「API應用程序會從蘋果商店
+0
有沒有這樣的命名爲的MPMoviePlayerController setOritentation的方法。 。 – 2014-12-24 13:40:55
相關問題
- 1. MPMoviePlayerController在全屏模式下停止工作//縱向定向// iOS 7
- 2. AVVideoCompositionCoreAnimationTool和CALayer在縱向模式下?
- 3. 在縱向模式下滾動
- 4. MPMoviePlayerController在後臺模式下
- 5. Three20 - 縱向模式下的TTSplitViewController
- 6. 縱向模式下的iPad視頻
- 7. Libreoffice Writer:縱向模式下的文本和橫向模式下的表格
- 8. UIScrollView在橫向和縱向模式下的zoomscale
- 9. UIScrollView在縱向模式和橫向模式下的行爲不同
- 10. UISplitViewController - 在縱向模式下以masterViewController可見的方式打開
- 11. UISplitViewController出現在橫向模式縱向
- 12. UIWebview在模式視圖中以縱向模式顯示在風景模式下
- 13. 藍牙在縱向/橫向模式下斷開
- 14. 在橫向和縱向模式下啓動iPad應用程序
- 15. UIViewcontroller在橫向模式下保持縱向座標
- 16. 在縱向和橫向模式下運行espresso androidTest s
- 17. 在橫向和縱向模式下使用ScrollViewer正確滾動
- 18. Android SCREEN_ORIENTATION_PORTRAIT僅在橫向模式下顯示縱向視圖
- 19. Android相機在縱向和橫向模式下保存圖像
- 20. 指定縱向和反向縱向模式的佈局
- 21. 如何在橫向模式而不是縱向模式下捕獲avfoundation
- 22. iphone - 強制MPMoviePlayerController在橫向模式下播放視頻
- 23. MPMoviePlayerController在全屏模式下快進嗎?
- 24. 在全屏模式下添加MPMoviePlayerController?
- 25. SPLITVIEW取向的問題。(縱向模式)
- 26. iPhone:縱向模式問題?
- 27. 縱向顯示模式
- 28. 如何知道橫向或縱向模式下的照片?
- 29. 方向縱向和橫向模式
- 30. .xib文件中的ViewController在縱向模式下加載,而在iOS中不在橫向模式下
我的應用程序與此擴展名被拒絕。被拒絕= \ – 2010-08-16 09:20:52