1

我想知道是否可以在纵向模式下使用 MoviePlayer。

谢谢你的帮助。

T。

4

3 回答 3

4

如果您使用[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO]; “ API,您的应用程序将被 Apple Store 拒绝

于 2010-02-05T11:22:07.483 回答
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 回答
1

你可以。请参阅 Erica Sadun 在
http://blogs.oreilly.com/iphone/2008/11/the-joys-of-vertical-audio.html上的文章。

但请注意,Apple 没有记录有关执行此操作的方法,因此不推荐。

于 2009-09-07T16:25:12.400 回答