title: Handling Player buttons in MPMoviePlayer
body: <p>I have added this code:</p>
  
  <pre><code>[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadMoviePlayerStateChanged:)
                                               name:MPMoviePlayerLoadStateDidChangeNotification
                                             object:self.mp];
  </code></pre>
  
  <p>It fires every state change of my MPMoviePlayer, into this function:</p>
  
  <pre><code>- (void) loadMoviePlayerStateChanged:(NSNotification*)notification
  {
  
      MPMoviePlayerController *Player = notification.object;
  
      MPMoviePlaybackState playbackState = Player.playbackState;
      if (playbackState == MPMoviePlaybackStateSeekingForward)
      {
          NSLog(@"Forward");
      }
      else if (playbackState == MPMoviePlaybackStateSeekingBackward)
      {
          NSLog(@"Backward");
       }
  }
  </code></pre>
  
  <p>It enters this function...</p>
  
  <p>But problem is with MPMoviePlaybackState playbackState = Player.playbackState;</p>
  
  <p>playerState is 1 when i launch player, and all other changes give 0. - How can that be?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Implementing this also each time gives nil:</p>
  
  <pre><code>NSNumber *reason = [notification.userInfo objectForKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey];
  
  if ([reason intValue] == MPMoviePlaybackStateSeekingForward) {
  
      // done button clicked!
  
  }
  </code></pre>