新版本的浏览器不允许音乐自动播放,必须点击页面或者其他互动方式才能开始播放。会报类似于如下的错误
NotAllowedError: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
NotAllowedError: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
so? how to solve???
做网页可以在标签里加一句话
做应用测试可以。。。不知道。。。百度吧