Browse Source

réinitialiser player onfinish, que l'on soit dans une playlist ou non

pull/5/head
Elsa Delmas 1 month ago
parent
commit
e40cf4ce7b
  1. 3
      soundmanager.js.html

3
soundmanager.js.html

@ -175,15 +175,14 @@ function jouer_son(media_id, media_url){
},
onfinish:function(){
// console.log("soundmanager finish");
reinitialiser_player(soundId);
if(typeof(myOnFinish) === "function"){
myOnFinish();
}
if(next_sound_id && next_sound_url && playlist) {
alterner_bouton_play_pause(soundId);
next_sound_parent.find(".play").trigger("click");
} else {
soundManager.stopAll();
reinitialiser_player(soundId);
}
},
onstop:function(){

Loading…
Cancel
Save