需求:在浏览器加载完毕后,自动播放视频:出现play() failed because the user didn't interact with the document first.错误...

解决方法:给video标签加入<video muted></video> 静音即可。

Chrome 66为了避免标签产生随机噪音。

 

参考链接:https://juejin.im/post/5af7129bf265da0b8262df4c

转载于:https://www.cnblogs.com/Neilisme/p/9412315.html