解决video.js video-player不能自动播放问题


把autoplay,muted都设置为true,如下:
autoplay: true, //如果true,浏览器准备好时开始回放。
muted: true, // 默认情况下将会消除任何音频。

 

<video ref="singleVideo" preload muted autoplay
         class="video-js vjs-big-play-centered vjs-fluid" style="width:100%;height:100%">

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM