[]在一个页面多放几个iframe,里面使用引擎,一般3-4个就报错了

Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).
at Function.<anonymous> (<anonymous>:10787:310)
at Function.get (<anonymous>:168:66)
at Function.WebAudioSound.initWebAudio (<anonymous>:10773:21)
at Function.Browser.__init__ (<anonymous>:6184:57)
at Function.Browser.createElement (<anonymous>:6241:12)
at Function.WebGL.isWebGLSupported (<anonymous>:3463:23)
at Function.WebGL.enable (<anonymous>:3171:15)
at Function.Laya3D.init (<anonymous>:13337:38)
at Object.os.init (<anonymous>:17:16)

好像白鹭的也这样,可能是AudioContext的问题 请查看下做出处理
已邀请:

kdsrpg

赞同来自:

能否创建出错或者超出6个的话就静音了??而不是报错完全不显示,
是否可以不绑定加载音频模块,?

Laya_XS

赞同来自:

你应该是每个iframe里都有声音在播放,声音全局就一个,这样使用应该就报错了!你为啥有这样的需求?

要回复问题请先

商务合作
商务合作