I catch a track stop event with this method:

public void PlayStateChange(int NewState) { if (NewState == 8)//окончание трека { Music.WMP.URL = trackUrl; WMP.controls.play(); } } 

This event is triggered when the track is finished, then I write a valid link to another track, however WMP.controls.play(); does not give any result. Why and how to fix it?

  • which API is it Throw me all the code I will see. - Rasul
  • Hack off WMPLib if you're talking about this. If you override Music.WMP = new WMPLib.WindowsMediaPlayer(); then everything works. - Max
  • Maybe before starting a new track, you must stop the previous one forcibly? Or open a new one first - Andrey NOP

0