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 fef9cedd
authored
Oct 31, 2023
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'qxh-master' of
http://git.keliuyun.com:55676/jiaxiuc123/miniProject
into qxh-master
2 parents
1d8b3e9c
1123573d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
h5/src/components/vionPlayer/index.vue
h5/src/views/player/vionPlayerDemo.vue
h5/src/components/vionPlayer/index.vue
View file @
fef9ced
...
...
@@ -3,6 +3,7 @@
:data-player-type=
"this.playerType"
:class=
"containerClassName"
>
<div
v-if=
"previewStyles"
class=
"vion-player-preview"
:style=
"previewStyles"
></div>
</div>
</
template
>
...
...
@@ -31,6 +32,7 @@ export default {
type
:
Boolean
,
default
:
true
,
},
// 是否回放。true 表示直播回放
isPlayback
:
{
type
:
Boolean
,
default
:
false
,
...
...
@@ -40,6 +42,11 @@ export default {
type
:
Boolean
,
default
:
false
,
},
// 预览图片地址
previewUrl
:
{
type
:
String
,
default
:
''
,
},
},
data
()
{
return
{
...
...
@@ -64,6 +71,13 @@ export default {
// if (this.playerType === 'playback') list.push('playback-status');
return
list
;
},
previewStyles
()
{
if
(
this
.
previewUrl
)
{
return
`background-image: url(
${
this
.
previewUrl
}
);`
}
else
{
return
null
;
}
},
},
mounted
()
{
this
.
init
(
this
.
playUrl
);
...
...
@@ -304,4 +318,10 @@ export default {
display
:
none
!important
;
}
}
.vion-player-preview
{
height
:
100%
;
width
:
100%
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
}
</
style
>
h5/src/views/player/vionPlayerDemo.vue
View file @
fef9ced
...
...
@@ -6,6 +6,7 @@
ref=
"vionPlayer"
:datetime-range=
"datetimeRange"
watermarkText=
"文安智能678"
preview-url=
"https://www.smartliu.top:2443/blog/themeauthor.jpg"
@
ptz-control=
"handlePtz"
@
rate-change=
"handleRateChange"
/>
...
...
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