title: iOS - Video not rotating only in iOS7 over iPhone?
body: <p><strong>What i have Done?</strong></p>
  
  <p>I am playing videos in an extended class of <a href="https://developer.apple.com/library/ios/documentation/mediaplayer/reference/mpmovieplayerviewcontroller_class/Reference/Reference.html" rel="noreferrer">MPMoviePlayerViewController</a> and have implemented orientation functions as follows</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
  
      if (toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown){
          return FALSE;
      }
      else{
          return TRUE;
      }
  }
  
  - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
      [self setControlsPositions:toInterfaceOrientation];
  }
  -(BOOL)shouldAutorotate
  {
      return YES;
  }
  </code></pre>
  
  <p><strong>What issue i am Facing?</strong></p>
  
  <p>The application works fine up till iOS6 on Both iPhone and iPad Almong with iPad (with iOS7) but the video does not rotate over iPhone with iOS7 installed. </p>
  
  <p>What is the reason for such issue and how it can be resolved?</p>
  
  <p><strong>Update</strong></p>
  
  <blockquote>
    <p><strong>I have found that the video does rotates if <code>setMovieSourceType</code> is
    set to <code>MPMovieSourceTypeUnknown</code> but does not rotate when set to
    `MPMovieSourceTypeStreaming</strong></p>
  </blockquote>