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 e4166061
authored
Sep 20, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 云台控制事件
1 parent
e305a2b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
h5/src/components/vionPlayer/index.vue
h5/src/views/player/vionPlayerDemo.vue
h5/src/components/vionPlayer/index.vue
View file @
e416606
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
isNotMute
:
false
,
isNotMute
:
false
,
timeout
:
10
,
timeout
:
10
,
keepScreenOn
:
true
,
// 屏幕常亮
keepScreenOn
:
true
,
// 屏幕常亮
debug
:
tru
e
,
// 是否开启控制台调试打印
debug
:
fals
e
,
// 是否开启控制台调试打印
// 按钮和界面
// 按钮和界面
loadingText
:
'加载中...'
,
loadingText
:
'加载中...'
,
...
@@ -101,6 +101,11 @@ export default {
...
@@ -101,6 +101,11 @@ export default {
playerIns
.
on
(
"log"
,
msg
=>
{
playerIns
.
on
(
"log"
,
msg
=>
{
console
.
log
(
"on-log"
,
msg
);
console
.
log
(
"on-log"
,
msg
);
});
});
playerIns
.
on
(
'ptz'
,
(
arrow
)
=>
{
// console.log('ptz', arrow);
this
.
$emit
(
'ptz-control'
,
arrow
);
});
},
},
// 暴露方法
// 暴露方法
...
...
h5/src/views/player/vionPlayerDemo.vue
View file @
e416606
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
:type=
"playerType"
:type=
"playerType"
:datetime-range=
"datetimeRange"
:datetime-range=
"datetimeRange"
watermarkText=
"方案智能"
watermarkText=
"方案智能"
@
ptz-control=
"handlePtz"
/>
/>
</div>
</div>
<div
class=
"footer"
>
<div
class=
"footer"
>
...
@@ -69,6 +70,10 @@ export default {
...
@@ -69,6 +70,10 @@ export default {
handleDestroy
()
{
handleDestroy
()
{
this
.
$refs
.
vionPlayer
.
destroy
();
this
.
$refs
.
vionPlayer
.
destroy
();
},
},
handlePtz
(
arrow
)
{
console
.
log
(
'handlePtz'
,
arrow
);
},
},
},
}
}
</
script
>
</
script
>
...
...
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