samedi 21 février 2015

Javascript - Reload flow audio player


I've a problem as you can imagine surely. My audio player has a Radionomy flux as the source, so I would that every time we press again on Play it reloads the flow and not to where it left off. What do I need to add ? And where ?



function play() {
var player = document.getElementById('audioPlayer');
var img_player = document.getElementById('img_player');

if (player.paused) {
player.play();
img_player.src = 'img/pause.png';
} else {
player.pause();
img_player.src = 'img/play.png';
}


}





Aucun commentaire:

Enregistrer un commentaire