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 95ca659a
authored
Sep 14, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 增加云台控制方法
1 parent
0a75e7de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
h5/src/components/jPlayer/index.vue
h5/src/components/jPlayer/index.vue
View file @
95ca659
...
...
@@ -127,7 +127,7 @@ export default {
createCanvas
(
cwidth
,
cheight
,
watermark
,
image
)
{
const
canvas
=
document
.
createElement
(
'canvas'
);
canvas
.
width
=
cwidth
;
canvas
.
height
=
cheight
;
canvas
.
height
=
cheight
-
40
;
// 40为底部工具条
canvas
.
className
=
'watermark'
;
console
.
log
(
'createCanvas'
,
canvas
);
...
...
@@ -215,6 +215,19 @@ export default {
stopPlay
()
{
return
this
.
_iframeEl
.
contentWindow
.
stopPlayer
();
},
ptzController
(
arrow
)
{
/**
* arrow传参说明:
* 方向控制:up, down, left, right, leftUp, rightUp, rightDown, leftDown
* 缩放控制:zoomExpand, zoomNarrow
* 调用完成,需要调用停止 ptzController('stop')
*
* 光圈控制:apertureFar, apertureNear
* 聚焦控制:focusFar, focusNear
* 调用完成,需要调用停止 ptzController('fiStop')
*/
this
.
_iframeEl
.
contentWindow
.
handlePtzController
(
arrow
);
},
},
}
</
script
>
...
...
@@ -228,7 +241,7 @@ export default {
position
:
absolute
;
top
:
0px
;
left
:
0px
;
z-index
:
10
;
//
z-index
:
10
;
}
}
</
style
>
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