我想知道是否可以在纵向模式下使用 MoviePlayer。
谢谢你的帮助。
T。
如果您使用[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
“ API,您的应用程序将被 Apple Store 拒绝
@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];
}
实现上面的代码。你会得到你想要的。
希望有帮助。
萨加尔。
查看以下问题。它具有相同的解决方案。
你可以。请参阅 Erica Sadun 在
http://blogs.oreilly.com/iphone/2008/11/the-joys-of-vertical-audio.html上的文章。
但请注意,Apple 没有记录有关执行此操作的方法,因此不推荐。