Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
N
newLive
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孟庆瑞
newLive
Commits
d82f9f93
Commit
d82f9f93
authored
Apr 04, 2023
by
mengqr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改的啥我也忘了
parent
aa32dd43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
fullScreen.vue
src/views/fullScreen.vue
+6
-2
live.vue
src/views/live.vue
+24
-4
No files found.
src/views/fullScreen.vue
View file @
d82f9f93
...
...
@@ -10,7 +10,7 @@
<img
v-if=
"!ifFollow"
@
click=
"clickFollow()"
class=
"follow-img"
src=
"../common/img/follow.png"
alt=
""
>
<img
v-if=
"ifFollow"
@
click=
"clickUnFollow()"
class=
"follow-img"
src=
"../common/img/unfollow.png"
alt=
""
>
<!-- 倒计时框 -->
<div
class=
"countTime"
v-if=
"imgShow==true"
>
<div
class=
"countTime"
v-if=
"imgShow==true
&&buttonType!=6
"
>
<span
class=
"countTimeText"
>
您还没有购买,可试看
{{
countTimes
}}
S
</span>
<img
class=
"countTimeImg"
src=
"../common/img/tryButton.png"
alt=
""
>
</div>
...
...
@@ -863,6 +863,8 @@ this.pten = false
// alert("sadfa第三个")
if
(
res
.
data
.
data
.
lvrIsFree
==
0
){
if
(
res
.
data
.
data
.
lvrStatus
==
1
){
this
.
buttonType
=
6
this
.
imgShow
=
true
//显示暂无主播
this
.
url
=
res
.
data
.
data
.
lvpPullUrl
this
.
urlStor
=
res
.
data
.
data
.
lvpPullUrl
}
else
{
...
...
@@ -923,6 +925,8 @@ this.pten = false
if
(
res
.
data
.
data
.
lvrStatus
==
1
){
this
.
url
=
res
.
data
.
data
.
lvpPullUrl
this
.
urlStor
=
res
.
data
.
data
.
lvpPullUrl
this
.
buttonType
=
4
this
.
imgShow
=
false
//显示暂无主播
}
else
{
alert
(
"当前直播间未开播"
)
this
.
buttonType
=
4
...
...
src/views/live.vue
View file @
d82f9f93
...
...
@@ -299,7 +299,7 @@ export default {
aspectRatio
:
'16:9'
,
// 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
fluid
:
true
,
// 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
sources
:
[{
type
:
"
application/x-mpegURL
"
,
// 类型
type
:
"
video/mp4
"
,
// 类型
src
:
''
// url地址
}],
poster
:
''
,
// 封面地址
...
...
@@ -353,7 +353,8 @@ export default {
},
mounted
()
{
this
.
liveList
()
this
.
ifIos
()
// this.liveList()
this
.
videoList
()
this
.
getHeight
()
this
.
pay_info
()
...
...
@@ -435,6 +436,25 @@ export default {
this
.
ifcli
=
false
}
},
//判断是苹果系统还是安卓系统
ifIos
(){
let
ua
=
navigator
.
userAgent
.
toLowerCase
();
//android终端
let
isAndroid
=
ua
.
indexOf
(
'Android'
)
>
-
1
||
ua
.
indexOf
(
'Adr'
)
>
-
1
;
//ios终端
let
isiOS
=
!!
ua
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
if
(
/
(
iPhone|iPad|iPod|iOS
)
/i
.
test
(
navigator
.
userAgent
)){
console
.
log
(
"我是苹果系统"
)
// alert("我是苹果系统")
// this.playerOptions.sources[0].type='video/mp4'
this
.
liveList
()
}
else
{
console
.
log
(
"我是安卓系统"
)
// this.playerOptions.sources[0].type='application/x-mpegURL'
this
.
liveList
()
}
},
clickmessage
(){
let
temp
=
this
.
qs
.
stringify
({
...
...
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