在Chrome中页面首次加载的时候有事会出现以上报错:
Uncaught (in promise) DOMException: play() failed because the user didn't in
- 在浏览器输入地址: chrome://flags/#autoplay-policy
- 修改 Autoplay policy 为 No user gesture is required
- 重启浏览器
在Chrome中页面首次加载的时候有事会出现以上报错:
Uncaught (in promise) DOMException: play() failed because the user didn't in