简体   繁体   English

已完成的事件无法处理IE中通过audiosprite播放的声音

[英]Completed event not working on sounds played through audiosprite in IE

I am using : 我在用 :

                    createjs.Sound.play("Demo_Sound").on("complete", function () {
                       alert('fin.');
                    }, this);

When Demo_Sound is not in audioSprite but it is a normal sound then it calls the "complete" event in IE too. Demo_Sound不在audioSprite中但是它是正常声音时,它也会在IE中调用“完成”事件。

This is not working. 这不起作用。 Any leads will be greatly appreciated. 任何线索将不胜感激。

The audiosprites were very small in length (2,3 seconds). 发烧友的长度非常短(2,3秒)。 And the gap between audios was only 200ms. 音频之间的差距只有200毫秒。 I increased this gap and combined more sounds in one sprite and it is working fine now. 我增加了这个差距,并在一个精灵中组合了更多的声音,现在工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM