Commit b2145d02 by libai

测试

parent 9b024868
Showing with 10 additions and 9 deletions
...@@ -745,14 +745,14 @@ $(function(){ ...@@ -745,14 +745,14 @@ $(function(){
},500) },500)
}) })
$("#myVideo").on("waiting",function(){ // $("#myVideo").on("waiting",function(){
clearTimeout(iosT) // clearTimeout(iosT)
layer.msg("流卡了") // layer.msg("流卡了")
iosT=setTimeout(function(){ // iosT=setTimeout(function(){
var player = document.getElementById('myVideo'); // var player = document.getElementById('myVideo');
player.play() // player.play()
},500) // },500)
}) // })
$("#myVideo").on("canplay",function(){ $("#myVideo").on("canplay",function(){
clearInterval(iosT) clearInterval(iosT)
...@@ -1831,6 +1831,7 @@ $(function(){ ...@@ -1831,6 +1831,7 @@ $(function(){
layer.msg("主播暂停了直播") layer.msg("主播暂停了直播")
var myVideo=document.getElementById('myVideo') var myVideo=document.getElementById('myVideo')
myVideo.pause(); myVideo.pause();
flvPlayer.unload();
var html=[]; var html=[];
html+='<img class="mc-tv" src="images/mc-tv.png">' html+='<img class="mc-tv" src="images/mc-tv.png">'
html+='<p>主播暫停,馬上回來</p>' html+='<p>主播暫停,馬上回來</p>'
......
...@@ -9,7 +9,7 @@ self.addEventListener('install', (e) => { ...@@ -9,7 +9,7 @@ self.addEventListener('install', (e) => {
}); });
self.addEventListener('fetch', (e) => { self.addEventListener('fetch', (e) => {
console.log(e.request.url); // console.log(e.request.url);
e.respondWith( e.respondWith(
caches.match(e.request).then((response) => response || fetch(e.request)), caches.match(e.request).then((response) => response || fetch(e.request)),
); );
......
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