Commit e4166061 by Tianqing Liu

feat: 云台控制事件

1 parent e305a2b8
...@@ -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: true, // 是否开启控制台调试打印 debug: false, // 是否开启控制台调试打印
// 按钮和界面 // 按钮和界面
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);
});
}, },
// 暴露方法 // 暴露方法
......
...@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!