Commit bbdf2146 by libai

测试

parent 6dd45171
...@@ -26,6 +26,7 @@ sessionStorage.topicId=data.topicId ...@@ -26,6 +26,7 @@ sessionStorage.topicId=data.topicId
if(data.tag==undefined)data.tag='' if(data.tag==undefined)data.tag=''
sessionStorage.tag=data.tag sessionStorage.tag=data.tag
sessionStorage.qd=data.qd sessionStorage.qd=data.qd
var mySound=data.sound;
if(sessionStorage.open==undefined)sessionStorage.open=1 if(sessionStorage.open==undefined)sessionStorage.open=1
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
try { try {
......

2.42 KB | W: | H:

1.73 KB | W: | H:

mTest/room/images/sound-no.png
mTest/room/images/sound-no.png
mTest/room/images/sound-no.png
mTest/room/images/sound-no.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -223,8 +223,8 @@ ...@@ -223,8 +223,8 @@
</div> --> </div> -->
</div> </div>
<div class="room-bottom"> <div class="room-bottom">
<img class="gift-btn" src="images/gift-btn.png" alt=""> <img class="gift-btn" src="images/gift-btn2.png" alt="">
<img data-type="0" class="sound-btn" src="images/sound-no.png" alt=""> <img data-type="0" class="sound-btn" src="images/sound-no.png?v=2022111801" alt="">
<img class="more-btn" src="images/more-btn.png" alt=""> <img class="more-btn" src="images/more-btn.png" alt="">
<div class="more-btn-dian"></div> <div class="more-btn-dian"></div>
<img class="msg-btn" src="images/msg-btn.png" alt=""> <img class="msg-btn" src="images/msg-btn.png" alt="">
...@@ -561,7 +561,7 @@ ...@@ -561,7 +561,7 @@
</body> </body>
<script src="../lib/jquery-3.1.1.min.js"></script> <script src="../lib/jquery-3.1.1.min.js"></script>
<script src="../lib/default.js?v=2022111801"></script> <script src="../lib/default.js?v=2022111802"></script>
<script src="../layer-v3.1.0/layer/layer.js"></script> <script src="../layer-v3.1.0/layer/layer.js"></script>
<!-- <script src="../lib/inobounce.js"></script> --> <!-- <script src="../lib/inobounce.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> --> <!-- <script src="lib/fingerprint2.js"></script> -->
...@@ -686,7 +686,12 @@ $(function(){ ...@@ -686,7 +686,12 @@ $(function(){
loadOutNum=1000 loadOutNum=1000
} }
var soundOk=false var soundOk=false
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>' if(mySound==1){
html+='<video 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(){
setTimeout(function() { setTimeout(function() {
...@@ -694,16 +699,17 @@ $(function(){ ...@@ -694,16 +699,17 @@ $(function(){
$(".room-content-loading").fadeOut(100) $(".room-content-loading").fadeOut(100)
$(".loading-face").fadeOut(100) $(".loading-face").fadeOut(100)
}, loadOutNum); }, loadOutNum);
$(".sound-btn").unbind("click").on("click",function(){ $(".sound-btn").unbind("click").on("click",function(){
var _self=$(this) var _self=$(this)
if(_self.attr("data-type")==1){ if(_self.attr("data-type")==1){
_self.attr("data-type","0") _self.attr("data-type","0")
$(".sound-btn").attr("src","images/sound-no.png") $(".sound-btn").attr("src","images/sound-no.png?v=2022111801")
$(".video-box video").prop("muted",true) $(".video-box video").prop("muted",true)
}else { }else {
_self.attr("data-type","1") _self.attr("data-type","1")
$(".sound-btn").attr("src","images/sound-yes.png") $(".sound-btn").attr("src","images/sound-yes.png")
$(".gift-btn").attr("src","images/gift-btn.png")
$(".video-box video").prop("muted",false) $(".video-box video").prop("muted",false)
} }
...@@ -713,6 +719,7 @@ $(function(){ ...@@ -713,6 +719,7 @@ $(function(){
soundOk=true soundOk=true
$(".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")
$(".gift-btn").attr("src","images/gift-btn.png")
$(".video-box video").prop("muted",false) $(".video-box video").prop("muted",false)
}) })
...@@ -2309,7 +2316,7 @@ $(function(){ ...@@ -2309,7 +2316,7 @@ $(function(){
$(".room-bg,.video-box").css("transition","0.35s all") $(".room-bg,.video-box").css("transition","0.35s all")
$(".room-bg,.video-box").css("top","100vh") $(".room-bg,.video-box").css("top","100vh")
setTimeout(function() { setTimeout(function() {
window.location.href="liveRoom.html?roomId="+topRoomId+"" window.location.href="liveRoom.html?roomId="+topRoomId+"&sound=1"
}, 350); }, 350);
return return
} }
...@@ -2321,7 +2328,7 @@ $(function(){ ...@@ -2321,7 +2328,7 @@ $(function(){
$(".room-bg,.video-box").css("transition","0.35s all") $(".room-bg,.video-box").css("transition","0.35s all")
$(".room-bg,.video-box").css("top","-100vh") $(".room-bg,.video-box").css("top","-100vh")
setTimeout(function() { setTimeout(function() {
window.location.href="liveRoom.html?roomId="+BottomRoomId+"" window.location.href="liveRoom.html?roomId="+BottomRoomId+"&sound=1"
}, 350); }, 350);
return return
} }
......
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