[]播放背景音乐出错

直接使用SoundManager播放mp3报错:
 
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
 
 
相关代码
Laya.SoundManager.playMusic("res/audio/bg.mp3", 0)
已邀请:

Aar0n

赞同来自:

没说什么情况怎么用的出错了,建议参看文档,正确的做项目,这个音乐播放 多方面测试功能都是良好的。如果有问题请尽可能多描述一些。

要回复问题请先

商务合作
商务合作