Uncaught (in promise) DOMException: play() failed because the user didn't interact
Chrome的autoplay政策在2018年4月做了更改。
新的行为:浏览器为了提高用户体验,减少数据消耗,现在都在遵循autoplay政策,Chrome的autoplay 政策非常简单
muted autoplay始终被允许
音乐的autoplay 只有在下面集中情况下起作用:
有用户行为发生像(click,tap,etc).
对于桌面程序,用户已经提前播放了音频
对于移动...
原创
2018-10-19 15:52:49 ·
34813 阅读 ·
4 评论