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
0a2d60b9
authored
Sep 05, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
026a1274
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
lib/flv.js
room/liveRoom.html
room/videoRoom.html
lib/flv.js
View file @
0a2d60b9
This diff is collapsed.
Click to expand it.
room/liveRoom.html
View file @
0a2d60b9
...
...
@@ -480,7 +480,8 @@ $(function () {
var
sendType
=
1
;
var
guardShowOk
=
null
;
var
richType
=
1
var
layzT
=
true
;
var
layzT
=
true
;
3
$
(
window
).
on
(
"scroll"
,
function
(){
if
(
layzT
==
true
){
layzT
=
false
...
...
@@ -622,13 +623,15 @@ $(function () {
if
(
promise
!==
undefined
)
{
promise
.
then
(
_
=>
{
var
html
=
[];
html
+=
'
<
div
class
=
"live-video jswebrtc"
data
-
url
=
"'+data.pullFlowUrl+'"
><
/div>'
;
$
(
".live-content-box-left-roombox"
).
html
(
html
)
html
+=
'
<
video
controls
webkit
-
playsinline
=
"true"
playsinline
=
"true"
autoplay
=
""
playsinline
=
"true"
class
=
"live-video"
src
=
""
id
=
"videoElement"
loop
=
""
><
/video>'
;
$
(
".live-content-box-left-roombox"
).
html
(
html
)
flvPlay
(
data
.
pullFlowUrl
)
// Autoplay started!
}).
catch
(
error
=>
{
var
myVideo
=
document
.
querySelector
(
".live-video"
)
var
html
=
[];
var
html
=
[];
html
+=
'
<
video
controls
webkit
-
playsinline
=
"true"
muted
playsinline
=
"true"
autoplay
=
""
playsinline
=
"true"
class
=
"live-video"
src
=
""
id
=
"videoElement"
loop
=
""
><
/video>'
;
$
(
".live-content-box-left-roombox"
).
html
(
html
)
flvPlay
(
data
.
pullFlowUrl
)
...
...
room/videoRoom.html
View file @
0a2d60b9
...
...
@@ -226,10 +226,10 @@ $(function(){
}
$
(
".video-tag-box"
).
html
(
html
);
var
html
=
[];
html
+=
'
<
video
autoplay
=
""
class
=
"video"
src
=
""
id
=
"videoElement"
controls
=
""
loop
=
""
poster
=
"https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+'"
><
/video>'
;
html
+=
'
<
video
autoplay
=
""
class
=
"video"
src
=
"
https://zhibocdn.yabolive.net/comm'+videoList.videos[0].url.replace("
flv
","
mp4
")+'
"
id
=
"videoElement"
controls
=
""
loop
=
""
poster
=
"https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+'"
><
/video>'
;
$
(
".video-play-box"
).
html
(
html
)
var
flvUrl
=
videoList
.
videos
[
0
].
url
.
replace
(
"mp4"
,
"flv"
)
flvPlay
(
'https://zhibocdn.yabolive.net/comm'
+
flvUrl
+
''
)
//
var flvUrl=videoList.videos[0].url.replace("mp4","flv")
//
flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'')
if
(
data
.
selfUp
==
1
)
var
html
=
'
<
div
><
img
src
=
"images/icon1.png"
alt
=
""
><
span
>
'+data.comment+'
<
/span></
div
><
div
class
=
"good-box"
><
img
class
=
"good-btn"
data
-
type
=
"1"
src
=
"images/icon2-click.png"
alt
=
""
><
span
>
'+data.up+'
<
/span></
div
>
';
else var html='
<
div
><
img
src
=
"images/icon1.png"
alt
=
""
><
span
>
'+data.comment+'
<
/span></
div
><
div
class
=
"good-box"
><
img
class
=
"good-btn"
data
-
type
=
"0"
src
=
"images/icon2.png"
alt
=
""
><
span
>
'+data.up+'
<
/span></
div
>
';
$(".video-btn-box").html(html)
...
...
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