How can I play a song on a loop using WMPLib ? (C# Windows Forms)

228 Views Asked by At

I'm developing a Windows Forms app in C# using VS 2019. I'm using the WMPLib, I created a WindowsMediaPlayer:

        WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
        player.URL = "song.wav";
        player.controls.play();

When the song ends it doesn't restart. I need to play this song on a loop, how can I do this??

0

There are 0 best solutions below