Why does Soundmanager 2 not fire onload event in firefox (23)?

不羁的心 提交于 2019-12-06 02:10:32

It's a problem with the documentation as it turns out. Remove the onload from the options and use the sound.load method.

Change your code to this:

var sound = soundManager.createSound(options);
sound.load( { 
  onload: function() { 
    alert('works'); 
  } 
});
this.SM = sound;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!