使用ezuikit.js播放直播时,报错:play() failed because the user didn't interact with the document first
解决方法:
给video标签加入 muted静音属性即可。m3u8在video中使用
例;
<video height="100%" width="100%" id="myPlayer" controls playsInline webkit-playsinline autoplay preload="auto" muted>
<source src="videUrl type="application/x-mpegURL" />
</video>
网友评论