【发布时间】:2009-09-03 16:37:29
【问题描述】:
我想知道是否可以在纵向模式下使用 MoviePlayer。
感谢您的帮助。
T.
【问题讨论】:
标签: iphone mpmovieplayercontroller
我想知道是否可以在纵向模式下使用 MoviePlayer。
感谢您的帮助。
T.
【问题讨论】:
标签: iphone mpmovieplayercontroller
如果你使用[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 未记录有关执行此操作的方法,因此不推荐。
【讨论】: