Commit a2f44774 by libai

测试

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