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

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

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

 

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

posted @ 2018-08-03 10:13  惊沙男孩  阅读(33065)  评论(0编辑  收藏  举报