From 988977b151e7f11f304847e797ae7c354561b7e5 Mon Sep 17 00:00:00 2001 From: libai <libai@yazhai.co> Date: Tue, 22 Nov 2022 18:18:35 +0800 Subject: [PATCH] 测试 --- mTest/room/liveRoom.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mTest/room/liveRoom.html b/mTest/room/liveRoom.html index 2cf81d5..5dfdab0 100644 --- a/mTest/room/liveRoom.html +++ b/mTest/room/liveRoom.html @@ -725,7 +725,7 @@ $(function(){ } // flvPlay(data.pullFlowUrl) - $("#myVideo").on("error",function(e){ + if(data.liveState==1){ clearInterval(iosT) var html=[]; html+='<img class="mc-tv" src="images/mc-tv.png">' @@ -738,7 +738,8 @@ $(function(){ var player = document.getElementById('myVideo'); player.pause() flvPlayer.unload(); - }) + } + $("#myVideo").on("canplay",function(){ clearInterval(iosT) @@ -1860,7 +1861,10 @@ $(function(){ $(".new-msg").show() } } - + console.log($(".user-msg-big >div").length) + if($(".user-msg-big >div").length>50){ + $(".user-msg-big >div").eq(($(".user-msg-big >div").length-1)).remove() + } $(".user-msg-name,.user-name").unbind("click").on("click",function(){ var _self=$(this) -- libgit2 0.25.0