IE 9/10/11 sound file limit

旧巷老猫 提交于 2020-01-03 19:37:13

问题


I'm making a browser game which have about 60 various-length audio files playing on the same scene, and thus cannot be unloaded.

I wonder if someone is facing this problem except me: IE has a (hardware dependent) limit of sound files that can be loaded via HTML5 Audio.load method. In my case it's exactly 41 sound file. When reaching this limit, IE fails to load sound with onerrror event firing on Audio element (I'm not making a testcase, hoping that it's a well-known bug, so many years it's there).

So, what can be done with this? Sound sprites? Tried that one, every browser except IE is OK playing sound sprites, but in IE there are some problems (as always). What else?

Thank you!

来源:https://stackoverflow.com/questions/22522493/ie-9-10-11-sound-file-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!