vendredi 18 avril 2014

JavaScript - music player with playlist


Vote count:

0




I'm trying to get a music playlist to work in JavaScript, however I cannot get it to change songs. Here is the fiddle, if someone could tell me what I am doing wrong I would be very grateful. I am using this code for changing song:



var newSong = songs[counter];
var player = document.getElementById('audio');
player.setAttribute('src', newSong);
player.load();
player.play();


asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire