2009-09-03 9 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]; 
} 

上記のコードを実装してください。あなたはあなたが望むものを手に入れます。

希望に役立ちます。

Sagar。

以下の質問をご覧ください。 同じ解決策があります。

playing video in custom size screen - view in iphone

+4

から拒否されます。= \ –

4

あなたが[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO]; を使用する場合は、「APIアプリケーションは、私のアプリは、この拡張機能で拒否されたApple Storeの

+0

MPMoviePlayerControllerでsetOritentationとして名前な方法何がありません。 。 –

関連する問題