Commit e4c4ffa0 by libai

测试

parent b07805c8
...@@ -1634,3 +1634,14 @@ ...@@ -1634,3 +1634,14 @@
opacity: 0.5; opacity: 0.5;
filter: blur(0.4rem); filter: blur(0.4rem);
} }
.play-icon {
display: none;
position: absolute;
width: 2rem;
height: 2rem;
top: 50%;
left: 50%;
margin-left: -1rem;
margin-top: -1rem;
z-index: 500;
}
...@@ -1688,3 +1688,14 @@ ...@@ -1688,3 +1688,14 @@
opacity: 0.5; opacity: 0.5;
filter: blur(0.4rem); filter: blur(0.4rem);
} }
.play-icon{
display: none;
position: absolute;
width: 2rem;
height: 2rem;
top: 50%;
left: 50%;
margin-left: -1rem;
margin-top: -1rem;
z-index: 500;
}
\ No newline at end of file
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<script src="../lib/fsize.js"></script> <script src="../lib/fsize.js"></script>
<link rel="stylesheet" href="../css/base.css"> <link rel="stylesheet" href="../css/base.css">
<link rel="stylesheet" href="../css/layer.css"> <link rel="stylesheet" href="../css/layer.css">
<link rel="stylesheet" href="css/liveRoom.css?v=2022112201"> <link rel="stylesheet" href="css/liveRoom.css?v=2022112208">
<link rel="stylesheet" href="../css/login.css?v=2022111808"> <link rel="stylesheet" href="../css/login.css?v=2022111808">
<script src="https://accounts.google.com/gsi/client" async defer></script> <script src="https://accounts.google.com/gsi/client" async defer></script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script> <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
...@@ -121,6 +121,7 @@ ...@@ -121,6 +121,7 @@
</div> </div>
<div class="room-bg"> <div class="room-bg">
<img class="play-icon" src="../images/play-icon.png" alt="">
<div class="touch-box"></div> <div class="touch-box"></div>
<div class="layer-shadow"></div> <div class="layer-shadow"></div>
<div style="display: none;" class="mc-out-box"> <div style="display: none;" class="mc-out-box">
...@@ -725,7 +726,12 @@ $(function(){ ...@@ -725,7 +726,12 @@ $(function(){
// flvPlay(data.pullFlowUrl) // flvPlay(data.pullFlowUrl)
$("#myVideo").on("error",function(e){ $("#myVideo").on("error",function(e){
// window.location.reload() $(".play-icon").show()
$(".play-icon").unbind("click",function(){
var myVideoEle=document.getElementById('myVideo')
myVideoEle.play()
$(".play-icon").fadeOut(200)
})
}) })
$("#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