2021-07-09
2021-07-09 本文已影响0人
奶茶和亮亮
使用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>