How can I loop a song with Windows Media Player in Visual Basic?

Xetusath picture Xetusath · May 1, 2013 · Viewed 11.6k times · Source

Previously I was playing it like

 My.Computer.Audio.Play(My.Resources.island, AudioPlayMode.BackgroundLoop)

But for different reasons(such as: lack of setting possibilities), thats not good enough, so I changed to Windows media player, but I have not a clue, how to make the sound loop in the background

Answer

Idle_Mind picture Idle_Mind · May 1, 2013

Try:

AxWindowsMediaPlayer1.settings.setMode("Loop", True)