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
98588278
authored
Nov 18, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
07b91245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
26 deletions
mTest/room/liveRoom.html
mTest/room/liveRoom.html
View file @
98588278
...
...
@@ -209,7 +209,7 @@
</div> -->
</div>
<div
id=
"video-box"
class=
"video-box"
>
<div
class=
"video-box"
>
<!-- <video muted autoplay src="http://pull.bsy.ourpow.com/vod/11128395/playlist.m3u8?sign=3690163a49cadadf680746273df3623b&t=6420fe47"> -->
</div>
...
...
@@ -566,7 +566,6 @@
<!-- <script src="../lib/inobounce.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"../lib/login.js?v=2022111801"
></script>
<script
src=
"../lib/xgplayer.js"
type=
"text/javascript"
></script>
<script>
$
(
function
(){
var
dHeight
=
$
(
document
).
height
()
...
...
@@ -687,30 +686,21 @@ $(function(){
loadOutNum=1000
}
var soundOk=false
// var ua = window.navigator.userAgent.toLowerCase();
// if (/android/.test(ua)) {
// if(mySound==1){
// $(".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)
// html+='
<
video
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
// }else{
// html+='
<
video
muted
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
// }
// }else{
// html+='
<
video
muted
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
// }
// $(".video-box").html(html)
$
(
".room-content-loading"
).
hide
()
let
player
=
new
Player
({
id
:
'video-box'
,
url
:
''
+
data
.
pullFlowUrlHLS
+
''
,
fluid
:
true
,
volume
:
0
,
autoplay
:
true
,
});
var ua = window.navigator.userAgent.toLowerCase();
if (/android/.test(ua)) {
if(mySound==1){
$(".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)
html+='
<
video
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
}
else
{
html
+=
'
<
video
muted
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
}
}
else
{
html
+=
'
<
video
muted
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
}
$
(
".video-box"
).
html
(
html
)
$
(
"body"
).
on
(
"click"
,
function
(){
player
.
play
()
})
...
...
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