1

MoviePlayer をポートレート モードで使用できるかどうかを知りたいです。

ご協力いただきありがとうございます。

T.

4

3 に答える 3

4

" APIを使用[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO]; すると、アプリケーションは Apple Store から拒否されます

于 2010-02-05T11:22:07.483 に答える
1

あなたはできる。
http://blogs.oreilly.com/iphone/2008/11/the-joys-of-vertical-audio.htmlにあるEricaSadunの記事を参照してください。

ただし、これを行う方法についてはAppleによって文書化されていないため、推奨されないことに注意してください。

于 2009-09-07T16:25:12.400 に答える
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];
}

上記のコードを実装します。あなたはあなたが望むものを手に入れるでしょう。

それが役立つことを願っています。

サーガル。

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

カスタム サイズの画面でビデオを再生 - iPhone で表示

于 2009-10-23T16:36:29.780 に答える