Commit cee6ba2f by libai

测试

parent a97f3fa1
Showing with 13 additions and 2 deletions
...@@ -740,11 +740,11 @@ $(function(){ ...@@ -740,11 +740,11 @@ $(function(){
flvPlayer.unload(); flvPlayer.unload();
} }
$("#myVideo").on("pause",function(){ $("#myVideo").on("pause",function(){
layer.msg("视频暂停了")
setTimeout(function(){ setTimeout(function(){
var player = document.getElementById('myVideo'); var player = document.getElementById('myVideo');
player.play() player.play()
},1000) },500)
}) })
$("#myVideo").on("playing",function(){ $("#myVideo").on("playing",function(){
layer.msg("视频卡主了") layer.msg("视频卡主了")
...@@ -753,6 +753,7 @@ $(function(){ ...@@ -753,6 +753,7 @@ $(function(){
player.play() player.play()
},500) },500)
}) })
$("#myVideo").on("canplay",function(){ $("#myVideo").on("canplay",function(){
clearInterval(iosT) clearInterval(iosT)
setTimeout(function() { setTimeout(function() {
...@@ -775,6 +776,16 @@ $(function(){ ...@@ -775,6 +776,16 @@ $(function(){
} }
}) })
$("#myVideo").on("volumechange",function(){
layer.msg("改变音量了")
setTimeout(function(){
soundOk=true
$(".sound-btn").attr("data-type","1")
$(".sound-btn").attr("src","images/sound-yes.png")
$(".gift-btn").attr("src","images/gift-btn.png")
$(".video-box video").prop("muted",false)
},500)
})
$("body").on("click",function(){ $("body").on("click",function(){
if(soundOk==true)return; if(soundOk==true)return;
soundOk=true soundOk=true
......
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