Added functionality to move on to next track in playlist when track ends

This commit is contained in:
gballan1 2016-11-29 12:18:25 -05:00
parent e1fccae03f
commit 5e902234ef

View File

@ -17,6 +17,12 @@ $(document).ready(function() {
// change selected album
changeSelectedAlbum(this);
});
// on track end
player.on('ended', function() {
// find selected track
changeSelectedTrack($('.music-track.selected').next());
});
});
function changeSelectedAlbum(albumElem) {