Could you help with one nuance of this player, please. Issue about adding tracks to playlist.
I'm getting playlist via Ajax (JSON-response). Is it possible to add more than one track in playlist? myPlaylist.setPlaylist() working perfect, but it's refreshing my playlist. I want just add tracks to current playlist not refresh whole. I'm using myPlaylist.add(), but it adds just one track. Or maybe i'm doing sth wrong...
So what i'm doing:
$.ajax({
url: "ajax.php?my_track=1",
dataType: 'json',
success: function(data){
//myPlaylist.add(data); --> undefined, not working
myPlaylist.setPlaylist(data); --> Working, but i need just add
}
});