2009-09-03 40 views

回答

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]; 
} 

實現上面的代碼。你會得到你想要的。

希望有所幫助。

薩加爾。

看看下面的問題。 它有相同的解決方案。

playing video in custom size screen - view in iphone

+4

我的應用程序與此擴展名被拒絕。被拒絕= \ – 2010-08-16 09:20:52

4

如果使用[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO]; 「API應用程序會從蘋果商店

+0

有沒有這樣的命名爲的MPMoviePlayerController setOritentation的方法。 。 – 2014-12-24 13:40:55

相關問題