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

问题:test.html:30 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD

 



    
        
    
    


        

        
    

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

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

你可能感兴趣的:(前端,video视频播放)