title: AVPlayer video not resuming after app become Active
body: <p>AVPlayer video not resuming from where it left, instead video starts from beginning. Here is my code.Can anyone help me??  </p>
  
  <pre><code>-(void)appEnteredForeground:(NSNotification*)notification {
      if(playerViewController.player.status == AVPlayerStatusReadyToPlay &amp;&amp; 
         playerViewController.player.currentItem.status == AVPlayerItemStatusReadyToPlay) {
            total_duration = self.playerViewController.player.currentItem.duration;
            [self.playerViewController.player seekToTime:currentTime];
            [_playerViewController.player play];
      }
  }    
  
  -(void)appEnteredBackground:(NSNotification*)notification {
      [playerViewController.player pause];
      currentTime = [playerViewController.player currentTime];
      [playerViewController.player seekToTime:currentTime];
  }
  </code></pre>