[]SoundManager的兼容性问题

play sound error!InvalidAccessError: Failed to execute 'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0","channel":"error","stack":{"hash":"7d3c8a0d876bf167157fe044b73f4d88","error":"Error\n    at Function.i.error \n    at e.playSound\n    at e.onRandBtnDown\n    at e.runWith\n    at i.event \n    at t.e.sendEvents \n    at t.e.onMouseDown
 
我们游戏的线上前端日志发现了很多类似上述的错误日志,使用Laya自带的SoundManager音乐播放器有浏览器的兼容性问题,出现这个问题时不能播放任何音乐和音效,而且错误是立即抛出的,意味着如果没有处理声音播放的异常,很有可能会阻断整个游戏的流程
 
我们都是使用的mp3格式的声音文件,应该不会有浏览器不支持mp3格式吧
 
另外这个问题在chrome内核版本53.0.2785.89(我们测试使用的浏览器版本)上会必现,希望官方能尽快修复这个问题
已邀请:

Laya_XS

赞同来自:

提供下你的引擎版本,下周我们确认下这个问题。谢谢反馈

要回复问题请先

商务合作
商务合作