我正在使用SoundJS播放音乐。如何检测歌曲何时结束?
SoundJS可以检测事件,有没有一首歌结束时的事件?如下所示:
var songInstance = createjs.Sound.play("sound");
songInstance.on("_SONG_ENDED_", function(){
//do something after song has ended
});
转载请注明出处:http://www.4008202667.com/article/20230330/1362278.html