简体   繁体   中英

How many HTML audio elements can I play at once?

I have several audio clips on a web page that I want to play simultaneously, using JavaScript, via the Audio() class.

Is there a defined limit on the number of audio files that can play simultaneously? If not, is there a reasonable limit that I can expect most browsers to provide for?

As far as I can tell, the specification is silent on this matter.

不,没有明确的限制,数量不取决于浏览器,而是取决于多少个请求,它可以加载多少个文件而不会超时。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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