title: How to achieve looping playback with Libvlcsharp
body: <p>I have libvlcsharp working for both my windows and android project.  Its very nice and easy to use!  But I can't find any way to make the playback automatically loop</p>
  
  <p>I've tried using the mediaplayer event handlers to restart playback and passing options into the media after creation, but nothing seems to work.</p>
  
  <p>I tried:</p>
  
  <pre><code>loopSong = new Media(VLCMediaPlayer.LibVLC, xmlLoader.GetResourceStream(loopFileName));
  loopSong.AddOption(":no-video");
  loopSong.AddOption(":input-repeat");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>static VLCMediaPlayer()
  {
      Core.Initialize();
      LibVLC = new LibVLC();
      MediaPlayer = new MediaPlayer(LibVLC);
      MediaPlayer.EndReached += MediaPlayer_EndReached;
  }
  
  private static void MediaPlayer_EndReached(object sender, EventArgs e)
  {
      MediaPlayer.Stop();
      MediaPlayer.Play();
  }
  </code></pre>
  
  <p>Playback simply ceases.  The events are called but MediaPlayer.WillPlay is false and calling Play does nothing.</p>