【问题标题】:MPMoviePlayerController in Portrait mode?MPMoviePlayerController 处于纵向模式?
【发布时间】:2009-09-03 16:37:29
【问题描述】:

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

感谢您的帮助。

T.

【问题讨论】:

    标签: iphone mpmovieplayercontroller


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:
      @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];
      }
      

      实现上面的代码。你会得到你想要的。

      希望对您有所帮助。

      萨加尔。

      查看以下问题。 它具有相同的解决方案。

      playing video in custom size screen - view in iphone

      【讨论】:

      • 我的应用被此扩展程序拒绝。 =\
      【解决方案3】:

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-03-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-03-29
        • 1970-01-01
        相关资源
        最近更新 更多