[英]detect end of song - SoundJS
I am using SoundJS to play music. 我正在使用SoundJS播放音乐。 How can I detect when a song has ended?
如何检测歌曲何时结束?
SoundJS can detect events, is there an event for when a song ends? SoundJS可以检测事件,歌曲结束时是否有事件? something like this:
像这样的东西:
var songInstance = createjs.Sound.play("sound");
songInstance.on("_SONG_ENDED_", function(){
//do something after song has ended
});
我认为您可以根据此站点执行以下代码: http : //createjs.com/docs/soundjs/classes/Sound.html
instance.on("complete", this.handleComplete, this);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.