Commit 3749fa07 by libai

测试

parent eaa61a30
Showing with 13 additions and 11 deletions
......@@ -33,7 +33,14 @@ if (bbb.indexOf("www.footseen.xyz/video.html") > -1) {
sessionStorage.version = data.appversion;
sessionStorage.pkg=data.pkg
}
sessionStorage.roomId = data.roomId;
if(sessionStorage.roomId==data.roomId){
sessionStorage.ref=1
sessionStorage.roomId = data.roomId;
}else{
sessionStorage.roomId = data.roomId;
sessionStorage.ref=0
}
sessionStorage.topicId=data.topicId
sessionStorage.go=data.go
if(data.tag==undefined||data.tag=='undefined')data.tag=''
......
......@@ -630,7 +630,9 @@ $(function () {
}).catch(error => {
var myVideo=document.querySelector(".live-video")
var html = [];
html += '<video controls webkit-playsinline ="true" muted playsinline ="true" autoplay ="" playsinline="true" class="live-video" src="" id="videoElement" loop="" ></video>';
if(sessionStorage.ref==1) html += '<video controls muted webkit-playsinline ="true" playsinline ="true" autoplay ="" playsinline="true" class="live-video" src="" id="videoElement" loop="" ></video>';
else html += '<video controls webkit-playsinline ="true" playsinline ="true" autoplay ="" playsinline="true" class="live-video" src="" id="videoElement" loop="" ></video>';
$(".live-content-box-left-roombox").html(html)
flvPlay(data.pullFlowUrl)
......@@ -1474,15 +1476,8 @@ $(function () {
$("#videoElement").prop('muted', false)
flvPlayer.play()
})
$(window).on("scroll",function(){
if(mutedOk==false)return;
mutedOk=false
$("#videoElement").prop('muted', false)
flvPlayer.play()
})
setTimeout(() => {
$("#videoElement").prop('muted', false)
}, 1000);
}
......
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