Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2145d02
authored
Nov 23, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
9b024868
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
mTest/room/liveRoom.html
mTest/sw.js
mTest/room/liveRoom.html
View file @
b2145d02
...
...
@@ -745,14 +745,14 @@ $(function(){
},
500
)
})
$
(
"#myVideo"
).
on
(
"waiting"
,
function
(){
clearTimeout
(
iosT
)
layer
.
msg
(
"流卡了"
)
iosT
=
setTimeout
(
function
(){
var
player
=
document
.
getElementById
(
'myVideo'
);
player
.
play
()
},
500
)
})
//
$("#myVideo").on("waiting",function(){
//
clearTimeout(iosT)
//
layer.msg("流卡了")
//
iosT=setTimeout(function(){
//
var player = document.getElementById('myVideo');
//
player.play()
//
},500)
//
})
$
(
"#myVideo"
).
on
(
"canplay"
,
function
(){
clearInterval
(
iosT
)
...
...
@@ -1831,6 +1831,7 @@ $(function(){
layer
.
msg
(
"主播暂停了直播"
)
var
myVideo
=
document
.
getElementById
(
'myVideo'
)
myVideo
.
pause
();
flvPlayer
.
unload
();
var
html
=
[];
html
+=
'
<
img
class
=
"mc-tv"
src
=
"images/mc-tv.png"
>
'
html+='
<
p
>
主播暫停,馬上回來
<
/p>
'
...
...
mTest/sw.js
View file @
b2145d02
...
...
@@ -9,7 +9,7 @@ self.addEventListener('install', (e) => {
});
self
.
addEventListener
(
'fetch'
,
(
e
)
=>
{
console
.
log
(
e
.
request
.
url
);
//
console.log(e.request.url);
e
.
respondWith
(
caches
.
match
(
e
.
request
).
then
((
response
)
=>
response
||
fetch
(
e
.
request
)),
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment