My control point has been running quite well following the SetAVTransportURI and immediately sending a SetNextAVTransportURI for the next item in my playlist. The problem I'm experiencing only came to notice when allow my users to manipulate the playlist.
If I have created a playlist and have not played yet only a SetAVTransportURI has been sent. I can manipulate the playlist, changing order etc... and when I play my CP sends the Play command and also looks in the playlist and does a SetNextAVTransportURI so than buffering can occur .... once the song finishes, I detect it , I update the displayed info and do another SetNextAVTransportURI ...
I can leave it playing or even stop and allow the user to muck about with the playlist. Say they move what would have been the next song down a couple places. I realized that I'd need to update the NextURI so I send a SetnextAVTransportURI. However, this doesn't replace the the NextTransportURI, instead it seems to append and Now my tracking with the playlist shall we say goes all wonky ;-)
I haven't really seen where UPnP has a reset of this NextURI, no actually did it claim you could keep sending them an in essense build up the playlist. BUT because I need to let the user go wild on the CP I thought we just had this sort of 2 song mini playlist thing going. Did I miss something?
Tom