Commit 1e66649d by libai

测试

parent 08366025
Showing with 8 additions and 5 deletions
......@@ -704,20 +704,23 @@ $(function(){
html+='<video muted id="myVideo" autoplay webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" style="height:100%;object-fit:fill;position:absolute;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
}
}else{
html+='<video muted id="myVideo" autoplay webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" style="height:100%;object-fit:fill;position:absolute;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
html+='<video muted id="myVideo" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" style="height:100%;object-fit:fill;position:absolute;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
}
$(".video-box").html(html)
if(/android/.test(ua)){
flvPlay(data.pullFlowUrl)
}else{
setTimeout(function(){
document.getElementById("myVideo").play()
},300)
}
// flvPlay(data.pullFlowUrl)
$("#myVideo").on("error",function(e){
window.location.reload()
})
document.getElementById("myVideo").addEventListener('pause', function () { //暂停开始执行的函数
layer.msg("暫停了")
});
$("#myVideo").on("canplay",function(){
setTimeout(function() {
......@@ -725,7 +728,7 @@ $(function(){
$(".room-content-loading").fadeOut(100)
$(".loading-face").fadeOut(100)
if(/iphone|ipad|ipod/.test(ua)){
document.getElementById("myVideo").play()
}
}, loadOutNum);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment