Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9d1a2b40
authored
Sep 26, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 录像状态不展示云台控制
1 parent
5d3c6c84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
h5/src/components/vionPlayer/index.vue
h5/src/components/vionPlayer/index.vue
View file @
9d1a2b4
<
template
>
<div
ref=
"container"
:class=
"containerClassName"
></div>
<div
ref=
"container"
:
data-player-type=
"this.playerType"
:
class=
"containerClassName"
></div>
</
template
>
<
script
>
...
...
@@ -44,6 +44,7 @@ export default {
playOriginUrl
:
''
,
rotateNum
:
0
,
mirrorIndex
:
0
,
playerType
:
'live'
,
// 播放器类型:live playback
player
:
{
height
:
0
,
...
...
@@ -53,7 +54,11 @@ export default {
},
computed
:
{
containerClassName
()
{
return
this
.
hideControls
?
[
'vion-player'
,
'hide-controls'
]
:
'vion-player'
;
// 样式不支持响应式,因为会覆盖掉播放器自身添加的样式
const
list
=
[
'vion-player'
];
if
(
this
.
hideControls
)
list
.
push
(
'hide-controls'
);
// if (this.playerType === 'playback') list.push('playback-status');
return
list
;
},
},
mounted
()
{
...
...
@@ -142,8 +147,10 @@ export default {
setTimeout
(()
=>
{
if
(
isPlayback
)
{
this
.
_jessibuca
.
playback
(
url
,
getPlaybackConfig
());
this
.
playerType
=
'playback'
;
}
else
{
this
.
_jessibuca
.
play
(
url
);
this
.
playerType
=
'live'
;
}
this
.
playOriginUrl
=
url
;
},
150
);
...
...
@@ -257,6 +264,12 @@ export default {
::v-deep(.jessibuca-control-progress-simple)
{
display
:
none
;
}
//
云台控制
&[
data-player-type
=
"playback"
]
{
::v-deep(.jessibuca-ptz)
{
display
:
none
!important
;
}
}
}
.hide-controls
{
::v-deep(.jessibuca-controls)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment