Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Repeat single song in a playlist

I have a PlayList loaded into my WMP instance, and I want it to loop just one song. Everything I've Googled up so far tells me to do this:

private AxWindowsMediaPlayer wmp;
wmp.settings.setMode("loop", true);

However, this only seems to make the entire PlayList repeat. The behavior I want is that, if I enable "repeat" when song 5 in the PlayList is playing, then song 5 will keep automatically repeat when it finishes (instead of proceeding to song 6). Most car MP3 players already work this way; is there a nice native way to do this in my C# program, or will I have to devise a "hack" solution, like intercepting the event that fires when the next song is loaded?

like image 322
Professor Mustard Avatar asked Nov 05 '22 14:11

Professor Mustard


1 Answers

Try to create a new set with only one song that you want to play over and over again.

like image 127
Machta Avatar answered Nov 15 '22 12:11

Machta