Add an event for the PlayStateChange event of the player control and check the state of
e.state
When this is stopped (
state = 1
) (fyi playing state = 3) then just iterate your playlist and load the next track and issue a play command.
there are several other states also, if you do a
debug.writeline(e.state)
you can watch these occur if you load and play and stop a song.
Rather than go and rewrite a bunch of code, see
http://www.devasp.net/net/articles/display/304.html[
^]
and you should be able to work it from that.