Commit 988977b1 by libai

测试

parent f8f89da7
Showing with 7 additions and 3 deletions
...@@ -725,7 +725,7 @@ $(function(){ ...@@ -725,7 +725,7 @@ $(function(){
} }
// flvPlay(data.pullFlowUrl) // flvPlay(data.pullFlowUrl)
$("#myVideo").on("error",function(e){ if(data.liveState==1){
clearInterval(iosT) clearInterval(iosT)
var html=[]; var html=[];
html+='<img class="mc-tv" src="images/mc-tv.png">' html+='<img class="mc-tv" src="images/mc-tv.png">'
...@@ -738,7 +738,8 @@ $(function(){ ...@@ -738,7 +738,8 @@ $(function(){
var player = document.getElementById('myVideo'); var player = document.getElementById('myVideo');
player.pause() player.pause()
flvPlayer.unload(); flvPlayer.unload();
}) }
$("#myVideo").on("canplay",function(){ $("#myVideo").on("canplay",function(){
clearInterval(iosT) clearInterval(iosT)
...@@ -1860,7 +1861,10 @@ $(function(){ ...@@ -1860,7 +1861,10 @@ $(function(){
$(".new-msg").show() $(".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(){ $(".user-msg-name,.user-name").unbind("click").on("click",function(){
var _self=$(this) var _self=$(this)
......
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