[LayaAir 2.0]2.0.1播放声音会报错

Error: DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
 
这个是报错内容 必现
 
播放声音代码在 GameUI.ts 里面这句 SoundControl.instance.playBgMusic("normalBg");
已邀请:

Laya_XS

赞同来自:

不知道是不是你浏览器的问题,我这边跑你的例子显示正常。附件是截图。

要回复问题请先

商务合作
商务合作