title: Swift - Check that video has been played continuously until the end
body: <p>I'm using a <code>AVPlayer</code> to display a video. 
  I wish to make sure that the user has seen the video continuously until the end.</p>
  
  <p>Using </p>
  
  <pre><code>NotificationCenter.default.addObserver(self, selector: #selector(playerDidFinishPlaying), name: NSNotification.Name.AVPlayerItemDidPlayToEndTime, object: playerVC.player?.currentItem)
  </code></pre>
  
  <p>I'm able to know when the video has finished, but the problem is that the user can drag to the end of the video using the playback controllers.</p>
  
  <p>I thought that <code>NSNotification.Name.AVPlayerItemTimeJumped</code> was the solution, but this notification is posted even when the video is played normally. What I mean is that with : </p>
  
  <pre><code>NotificationCenter.default.addObserver(self, selector: #selector(playerItemTimeJumped), name: NSNotification.Name.AVPlayerItemTimeJumped, object: playerVC.player?.currentItem)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@objc func playerItemTimeJumped(note: NSNotification) {
          hasTimeJumped = true
          print("Time has jumped !")
  }
  </code></pre>
  
  <p>"Time has jumped !" is printed even if I watched the video without touching anything. Is that behaviour normal? If yes, how can I check that the user has watched the video continuously until the end? Am I forced to create a timer variable and check if that variable if bigger than the length of the video?</p>
  
  <p>Kind regards</p>