Commit a2f44774 by libai

测试

parent b99c9b64
Showing with 8 additions and 5 deletions
......@@ -572,6 +572,7 @@
<script src="../lib/flv.js"></script>
<script>
$(function(){
var dHeight=$(document).height()
$(".touch-box").css("height",dHeight/2+"px")
$(".touch-box").css("margin-top",-dHeight/5+"px")
......@@ -707,13 +708,15 @@ $(function(){
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)
var iosTime=0;
var iosT=null;
if(/android/.test(ua)){
flvPlay(data.pullFlowUrl)
}else{
setTimeout(function(){
var myPlay= document.getElementById("myVideo")
myPlay.play()
},300)
iosT=setInterval(function(){
iosTime++
if(iosTime>=2)window.location.reload()
},1000)
}
// flvPlay(data.pullFlowUrl)
......@@ -722,7 +725,7 @@ $(function(){
})
$("#myVideo").on("canplay",function(){
clearInterval(iosT)
setTimeout(function() {
clearInterval(loadT)
$(".room-content-loading").fadeOut(100)
......
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