Commit 743e4021 by libai

测试

parent b8434c08
...@@ -691,10 +691,27 @@ $(function(){ ...@@ -691,10 +691,27 @@ $(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="object-fit:cover;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="object-fit:cover;z-index: 10" poster="" src="'+data.pullFlowUrlHLS+'"></video>'
} }
if(data.pullFlowUrlHLS.indexOf('pull.bsy')>-1)videoCdn='bsy'
else if(data.pullFlowUrlHLS.indexOf('pull.zl')>-1)videoCdn='zl'
var iosT=null; var iosT=null;
$(".video-box").html(html) $(".video-box").html(html)
if(/android/.test(ua)){ if(/android/.test(ua)){
flvPlay(data.pullFlowUrl) flvPlay(data.pullFlowUrl)
matchNum=Math.floor(Math.random()*100000000)
$.ajax({
url:$ip+'activeLog/doVideoLoadingCheck',
data:{
matchid:matchNum,
type:1,
systemOs:'android',
roomid:sessionStorage.roomId,
pageID: localStorage.canvasCode,
cdn:videoCdn
},
success:function(data){
// console.log('视频加载检测',data)
}
})
}else{ }else{
var player = document.getElementById('myVideo'); var player = document.getElementById('myVideo');
player.play() player.play()
...@@ -707,7 +724,8 @@ $(function(){ ...@@ -707,7 +724,8 @@ $(function(){
type:1, type:1,
systemOs:'ios', systemOs:'ios',
roomid:sessionStorage.roomId, roomid:sessionStorage.roomId,
pageID: localStorage.canvasCode pageID: localStorage.canvasCode,
cdn:videoCdn
}, },
success:function(data){ success:function(data){
// console.log('视频加载检测',data) // console.log('视频加载检测',data)
...@@ -750,7 +768,8 @@ $(function(){ ...@@ -750,7 +768,8 @@ $(function(){
systemOs:'ios', systemOs:'ios',
roomid:sessionStorage.roomId, roomid:sessionStorage.roomId,
gap:(overTime-startTime), gap:(overTime-startTime),
pageID: localStorage.canvasCode pageID: localStorage.canvasCode,
cdn:videoCdn
}, },
success:function(data){ success:function(data){
// console.log('视频加载检测',data) // console.log('视频加载检测',data)
...@@ -767,6 +786,25 @@ $(function(){ ...@@ -767,6 +786,25 @@ $(function(){
}, 3000); }, 3000);
} }
} }
if(/android/.test(ua)){{
//视频加载检测
var overTime=new Date().getTime()
$.ajax({
url:$ip+'activeLog/doVideoLoadingCheck',
data:{
matchid:matchNum,
type:2,
systemOs:'android',
roomid:sessionStorage.roomId,
gap:(overTime-startTime),
pageID: localStorage.canvasCode,
cdn:videoCdn
},
success:function(data){
// console.log('视频加载检测',data)
}
})
}
clearInterval(iosT) clearInterval(iosT)
$(".play-icon").hide() $(".play-icon").hide()
setTimeout(function() { setTimeout(function() {
......
...@@ -326,6 +326,7 @@ ...@@ -326,6 +326,7 @@
<script> <script>
$(function(){ $(function(){
var browserLang = navigator.language var browserLang = navigator.language
if(browserLang.indexOf("zh")==-1){ if(browserLang.indexOf("zh")==-1){
$(".bottom-nav").css("background","url(images/bottom-nav-En.png) no-repeat") $(".bottom-nav").css("background","url(images/bottom-nav-En.png) no-repeat")
$(".bottom-nav").css("background-size","100% 100%") $(".bottom-nav").css("background-size","100% 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