title: Detect when VideoPlayer has finished playing
body: <p>I have a MovieController class that manages videos in my project. I'm using the new video player component introduced in Unity 5.6.</p>
  
  <p>I would like to call a method when a movie has finished playing. So far, this method is only a <code>Debug.Log</code>, as you can see:</p>
  
  <pre><code>using UnityEngine;
  using UnityEngine.Video;
  
  public class MovieController : MonoBehaviour
  {
      private VideoPlayer m_VideoPlayer;
  
      void Awake () 
      {
          m_VideoPlayer = GetComponent&lt;VideoPlayer&gt;();
          m_VideoPlayer.loopPointReached += OnMovieFinished; // loopPointReached is the event for the end of the video
      }
  
      void OnMovieFinished(VideoPlayer player)
      {
          Debug.Log("Event for movie end called");
          player.Stop();
      }
  }
  </code></pre>
  
  <p>My issue is that the <code>OnMovieFinished</code> is not called at the end of the video, and I just end up with a black screen and nothing in the console.</p>