title: How can I change the view of a video to Landscape when my app is locked to portrait
body: <p>I am working on a iPad/iPhone app that displays a video on a button press. I have the video working however, my app is locked to portrait mode and I would like my video to display in Landscape only. Here is some code to go with my questions, I would like the easiest and simpliest way if its possible.</p>
  
  <pre><code>-(void) view_intro:(UIButton *)introButton {
  NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle]
                 pathForResource:@"Introduction" ofType:@".m4v"]];
  moviePlayer =  [[MPMoviePlayerController alloc]
                  initWithContentURL:url];
  
  [[NSNotificationCenter defaultCenter] addObserver:self
                  selector:@selector(moviePlayBackDidFinish:)
                  name:MPMoviePlayerPlaybackDidFinishNotification
                  object:moviePlayer];
  
  moviePlayer.controlStyle = MPMovieControlStyleDefault;
  moviePlayer.shouldAutoplay = YES;
  [self.view addSubview:moviePlayer.view];
  [moviePlayer setFullscreen:YES animated:YES];}
  </code></pre>