Commit 12be5840 by libai

测试

parent e592ff54
Showing with 6 additions and 0 deletions
...@@ -686,6 +686,8 @@ $(function(){ ...@@ -686,6 +686,8 @@ $(function(){
loadOutNum=1000 loadOutNum=1000
} }
var soundOk=false var soundOk=false
var ua = window.navigator.userAgent.toLowerCase();
if (/android/.test(ua)) {
if(mySound==1){ if(mySound==1){
$(".sound-btn").attr("data-type","1") $(".sound-btn").attr("data-type","1")
$(".sound-btn").attr("src","images/sound-yes.png") $(".sound-btn").attr("src","images/sound-yes.png")
...@@ -695,6 +697,10 @@ $(function(){ ...@@ -695,6 +697,10 @@ $(function(){
}else{ }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" 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>'
}
$(".video-box").html(html) $(".video-box").html(html)
$("#myVideo").on("canplay",function(){ $("#myVideo").on("canplay",function(){
......
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