Audio.onAudioEnd - HermesPasser/Ramu GitHub Wiki

virtual Audio.play()

Description

Called when the audio reach the end.

You can test this snippet of code here.

let symphony5 = new Ramu.Audio("https://upload.wikimedia.org/wikipedia/commons/0/02/BeethovenSymphony5Mvt4Bar244.ogg");
symphony5.play();
symphony5.play();
symphony5.onAudioEnd = function(){
   alert("the audio ended");
};