title: Why does the MPMoviePlayerController call MPMoviePlayerPlaybackDidFinishNotification, when enter in fullsceen mode
body: <p>I want to display a <strong>MPMoviePlayerViewController</strong> in full screen mode, but when the fullscreen button of the movieplayercontroller view is beeing pressed, first the <strong>MPMoviePlayerWillEnterFullscreenNotification</strong> gets called, as expacted, but than the <strong>MPMoviePlayerPlaybackDidFinishNotification</strong> is also beeing sent. As a reason it says <strong>MPMovieFinishReasonPlaybackEnded</strong> and i don't know, what i'm doing wrong. (In addition, i use <em>iOS 6.0</em> and <em>XCode 4.5.1</em>)</p>
  
  <p>My expactations are, that only the <strong>MPMoviePlayerWillEnterFullscreenNotification</strong> is beeing called.</p>
  
  <p>Short explanation to the code below:
  The MovieplayerViewController's view is beeing displayed in a tiny subview in my content view. When tapping the fullscreen-button, it first gets displayed as fullscreen but than also calls the exit button and stops playing (no crashes, nothing else).</p>
  
  <pre><code>MPMoviePlayerViewController *playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
  
     [playerViewController.moviePlayer setControlStyle:MPMovieControlStyleEmbedded];
  
     [playerViewController.moviePlayer setScalingMode:MPMovieScalingModeFill];
  
     CGRect rect = videoView.frame;
  
     rect.origin = CGPointZero;
  
     [playerViewController.view setFrame:rect];
  
     [playerViewController.moviePlayer prepareToPlay];
  
  
          //movie this is my contents subview, where i add the viewcontroller's view as a subbview
      [self.videoView addSubview:playerViewController.view];
  
      [self.videoView setHidden:NO];
  
  
      playerViewController.moviePlayer.useApplicationAudioSession = NO;
  
      [playerViewController.moviePlayer play];
  
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(moviePlayerDidFinishNotification:)
                                                   name:MPMoviePlayerPlaybackDidFinishNotification
                                                 object:playerViewController.moviePlayer];
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(moviePlayerWillEnterFullscreenNotification:)
                                                   name:MPMoviePlayerWillEnterFullscreenNotification
                                                 object:playerViewController.moviePlayer];    
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(moviePlayerWillExitFullscreenNotification:)
                                                   name:MPMoviePlayerWillExitFullscreenNotification
                                                 object:playerViewController.moviePlayer];
  
          //i store the movieplayer in a property, so i can use it for further operations
      self.myPlayer = playerViewController;
  
      [playerViewController release];
  </code></pre>
  
  <p>And thats it!</p>
  
  <p>When the resize (or fullscreen) button is being pressed, the moviePlayerDidFinishNotification: method also is being called </p>
  
  <pre><code>- (void)moviePlayerDidFinishNotification:(NSNotification*) aNotification {
  
      int reason = [[[aNotification userInfo] valueForKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey] intValue];
  
      if (reason == MPMovieFinishReasonPlaybackEnded) {
  
          //movie finished playin
  
  //in debug mode, it stops right at the NSLog
  
          NSLog(@"");
      }
  
      else if (reason == MPMovieFinishReasonUserExited) {
  
          //user hit the done button
  
      }
  
      else if (reason == MPMovieFinishReasonPlaybackError) {
  
          //error
  
      }
  
  .. }
  </code></pre>
  
  <p>Is there something i do wrong or is there probably a change since iOS 6.0?</p>