title: Setting MPMoviePlayerController orientation without MPMoviePlayerViewController
body: <p>It seems the best (only?) way to <a href="https://stackoverflow.com/a/4021093/194707">rotate an MPMoviePlayerController to landscape is to use an MPMoviePlayerViewController </a>.</p>
  
  <p>I'm currently modifying an open source game which, unfortunately, does not have a root UIViewController set. Is there any way to set the orientation only with MPMoviePlayerController, or do I have to suck it up and hack a root UIViewController into this application?</p>
  
  <p>Edit: in response to Shivan Raptor, the game is Canabalt: <a href="https://github.com/ericjohnson/canabalt-ios" rel="nofollow noreferrer">https://github.com/ericjohnson/canabalt-ios</a>. I'm instantiating an MPMoviePlayerController as follows:</p>
  
  <pre><code>self.moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:self.videoTempFilePath];
  self.moviePlayerController.repeatMode = MPMovieRepeatModeNone;
  
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(moviePlaybackComplete:)
                                               name:MPMoviePlayerDidExitFullscreenNotification
                                             object:self.moviePlayerController];
  [glView addSubview:self.moviePlayerController.view];
  
  // MUST SET THIS HERE AFTER WE ADD AS SUBVIEW
  self.moviePlayerController.fullscreen = YES;
  
  [self.moviePlayerController play];
  </code></pre>
  
  <p>The movie plays in portrait and stays locked there, but I'd like to play it in landscape.</p>