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 482006e8
authored
Sep 22, 2023
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
4199d448
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
h5/package-lock.json
h5/src/htmlDemo/demo-pc.html
h5/src/views/extension/videoTime.vue
h5/src/views/pc/index.vue
h5/package-lock.json
View file @
482006e
This diff is collapsed.
Click to expand it.
h5/src/htmlDemo/demo-pc.html
View file @
482006e
...
...
@@ -54,7 +54,7 @@
height
:
''
,
// 设置组件高度
isShowJT
:
false
,
// 是否显示截图按钮,默认为false
isShowSplit
:
true
,
// 是否支持四分屏,默认为true
hideControls
:
tru
e
,
// 是否显示视频操作区,默认为false
hideControls
:
fals
e
,
// 是否显示视频操作区,默认为false
showPtz
:
true
,
// 是否显示视频操作区中的云台控制,默认为true
});
}
...
...
h5/src/views/extension/videoTime.vue
View file @
482006e
...
...
@@ -39,7 +39,7 @@
</div>
<!-- 云台控制模块 -->
<div
class=
"ptz-control-box"
v-if=
"ptzControlShow"
>
<div
class=
"ptz-control-left-box"
:class=
"[ptzControlType=='left'?'ptz-left':ptzControlType=='
top'?'ptz-top':ptzControlType=='right'?'ptz-right':ptzControlType=='bottom
'?'ptz-bottom':'']"
>
<div
class=
"ptz-control-left-box"
:class=
"[ptzControlType=='left'?'ptz-left':ptzControlType=='
up'?'ptz-top':ptzControlType=='right'?'ptz-right':ptzControlType=='down
'?'ptz-bottom':'']"
>
<div
class=
"ptz-control-left"
@
mousedown=
"ptzControlOneClick('left')"
@
mouseup=
"ptzControlStop"
@
mouseleave=
"ptzControlStop"
@
touchstart=
"ptzControlOneClick('left')"
@
touchend=
"ptzControlStop"
></div>
<div
class=
"ptz-control-top"
@
mousedown=
"ptzControlOneClick('up')"
@
mouseup=
"ptzControlStop"
@
mouseleave=
"ptzControlStop"
@
touchstart=
"ptzControlOneClick('up')"
@
touchend=
"ptzControlStop"
></div>
<div
class=
"ptz-control-right"
@
mousedown=
"ptzControlOneClick('right')"
@
mouseup=
"ptzControlStop"
@
mouseleave=
"ptzControlStop"
@
touchstart=
"ptzControlOneClick('right')"
@
touchend=
"ptzControlStop"
></div>
...
...
@@ -229,7 +229,7 @@ export default {
this
.
startTime
=
moment
(
date
).
format
(
'HH:mm:ss'
)
this
.
isNoBack
=
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
==
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
ptzControlShow
=
false
this
.
$emit
(
'videoTimeChange'
,
date
)
this
.
$emit
(
'videoTimeChange'
,
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
)
this
.
isCanFast
()
},
changeDate
(
date
,
status
)
{
...
...
h5/src/views/pc/index.vue
View file @
482006e
...
...
@@ -145,6 +145,7 @@ export default {
window
.
initWebVideo
=
this
.
initWebVideo
;
window
.
screenshot
=
this
.
screenshot
;
window
.
stopPlay
=
this
.
stopPlay
;
window
.
getSelectVideo
=
this
.
getSelectVideo
;
},
methods
:
{
initWebVideo
(
obj
)
{
...
...
@@ -357,6 +358,10 @@ export default {
// 暴露方法
// 获取当前选中播放窗口
getSelectVideo
()
{
return
this
.
splitNum
},
/**
* 截图
* num为分屏时的窗口序号,从0开始;不传则认为是单屏
...
...
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