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
743e4021
authored
Dec 29, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
b8434c08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
mobile/room/liveRoom.html
mobile/videoPage.html
mobile/room/liveRoom.html
View file @
743e4021
...
...
@@ -691,10 +691,27 @@ $(function(){
html
+=
'
<
video
muted
id
=
"myVideo"
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"object-fit:cover;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
}
if
(
data
.
pullFlowUrlHLS
.
indexOf
(
'pull.bsy'
)
>-
1
)
videoCdn
=
'bsy'
else
if
(
data
.
pullFlowUrlHLS
.
indexOf
(
'pull.zl'
)
>-
1
)
videoCdn
=
'zl'
var
iosT
=
null
;
$
(
".video-box"
).
html
(
html
)
if
(
/android/
.
test
(
ua
)){
flvPlay
(
data
.
pullFlowUrl
)
matchNum
=
Math
.
floor
(
Math
.
random
()
*
100000000
)
$
.
ajax
({
url
:
$ip
+
'activeLog/doVideoLoadingCheck'
,
data
:{
matchid
:
matchNum
,
type
:
1
,
systemOs
:
'android'
,
roomid
:
sessionStorage
.
roomId
,
pageID
:
localStorage
.
canvasCode
,
cdn
:
videoCdn
},
success
:
function
(
data
){
// console.log('视频加载检测',data)
}
})
}
else
{
var
player
=
document
.
getElementById
(
'myVideo'
);
player
.
play
()
...
...
@@ -707,7 +724,8 @@ $(function(){
type
:
1
,
systemOs
:
'ios'
,
roomid
:
sessionStorage
.
roomId
,
pageID
:
localStorage
.
canvasCode
pageID
:
localStorage
.
canvasCode
,
cdn
:
videoCdn
},
success
:
function
(
data
){
// console.log('视频加载检测',data)
...
...
@@ -750,7 +768,8 @@ $(function(){
systemOs
:
'ios'
,
roomid
:
sessionStorage
.
roomId
,
gap
:(
overTime
-
startTime
),
pageID
:
localStorage
.
canvasCode
pageID
:
localStorage
.
canvasCode
,
cdn
:
videoCdn
},
success
:
function
(
data
){
// console.log('视频加载检测',data)
...
...
@@ -767,6 +786,25 @@ $(function(){
},
3000
);
}
}
if
(
/android/
.
test
(
ua
)){{
//视频加载检测
var
overTime
=
new
Date
().
getTime
()
$
.
ajax
({
url
:
$ip
+
'activeLog/doVideoLoadingCheck'
,
data
:{
matchid
:
matchNum
,
type
:
2
,
systemOs
:
'android'
,
roomid
:
sessionStorage
.
roomId
,
gap
:(
overTime
-
startTime
),
pageID
:
localStorage
.
canvasCode
,
cdn
:
videoCdn
},
success
:
function
(
data
){
// console.log('视频加载检测',data)
}
})
}
clearInterval
(
iosT
)
$
(
".play-icon"
).
hide
()
setTimeout
(
function
()
{
...
...
mobile/videoPage.html
View file @
743e4021
...
...
@@ -326,6 +326,7 @@
<script>
$
(
function
(){
var
browserLang
=
navigator
.
language
if
(
browserLang
.
indexOf
(
"zh"
)
==-
1
){
$
(
".bottom-nav"
).
css
(
"background"
,
"url(images/bottom-nav-En.png) no-repeat"
)
$
(
".bottom-nav"
).
css
(
"background-size"
,
"100% 100%"
)
...
...
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