Commit 8b44465f by libai

测试

parent 46dea152
Showing with 5 additions and 2 deletions
...@@ -739,12 +739,16 @@ $(function(){ ...@@ -739,12 +739,16 @@ $(function(){
player.pause() player.pause()
flvPlayer.unload(); flvPlayer.unload();
} }
setTimeout(function(){
var player = document.getElementById('myVideo');
player.pause()
},10000)
$("#myVideo").on("pause",function(){ $("#myVideo").on("pause",function(){
console.log("暂停播放") console.log("暂停播放")
setTimeout(function(){ setTimeout(function(){
var player = document.getElementById('myVideo'); var player = document.getElementById('myVideo');
player.play() player.play()
},1500) },1000)
}) })
$("#myVideo").on("canplay",function(){ $("#myVideo").on("canplay",function(){
...@@ -1867,7 +1871,6 @@ $(function(){ ...@@ -1867,7 +1871,6 @@ $(function(){
$(".new-msg").show() $(".new-msg").show()
} }
} }
console.log($(".user-msg-big >div").length)
if($(".user-msg-big >div").length>50){ if($(".user-msg-big >div").length>50){
$(".user-msg-big >div").eq(($(".user-msg-big >div").length-1)).remove() $(".user-msg-big >div").eq(($(".user-msg-big >div").length-1)).remove()
} }
......
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