devsnd / cherrymusic

Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.
http://www.fomori.org/cherrymusic
GNU General Public License v3.0
1.03k stars 187 forks source link

New tracks in queue not recognised #274

Closed PX7057 closed 11 years ago

PX7057 commented 11 years ago

When I clear the queue and then add a new track, the track that was active from the cleared queue is played when I press play. In order to make the newly added track play, I have to click on it in the queue itself.

devsnd commented 11 years ago

Ah I see. This is due to jPlayer still having media set in the queue, even though the playlist is empty. When adding a new track, this doesn't change the current track in the jPlayer (which normally is the wanted behavior).

Note to myself: The player should check if the currently active track is contained in the visible playlist, and if not, it should play the first track in the currently visible playlist.

tilboerner commented 11 years ago

(690c477c6e9c29770229843c109da0e039850af9 fixed another issue.)