Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
google浏览器页面加载视频自动播放出现这个报错,怎么解决
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
google浏览器页面加载视频自动播放出现这个报错,怎么解决
现在浏览器为了移动端的带宽和防止扰民阻止了自动播放,只有用户在页面上有交互动作后,才可以自动播放;所以可以设置一个按钮, 按钮点击后触发自动播放