chrome浏览器web页面使用原生audio报错

chrome浏览器web页面使用原生audio报错 Uncaught (in promise) DOMException

解决方法

打开网址 chrome://flags/#autoplay-policy
chrome浏览器web页面使用原生audio报错
此页面的第一项 Autoplay policy 的选项改为 “No user gesture is required”,之后点击右下角的 “RELAUNCH NOW”,重启chorme即可
chrome浏览器web页面使用原生audio报错

html5 自动播放chrome浏览器报错Uncaught (in promise) DOMException