Commit e4166061 by Tianqing Liu

feat: 云台控制事件

1 parent e305a2b8
......@@ -54,7 +54,7 @@ export default {
isNotMute: false,
timeout: 10,
keepScreenOn: true, // 屏幕常亮
debug: true, // 是否开启控制台调试打印
debug: false, // 是否开启控制台调试打印
// 按钮和界面
loadingText: '加载中...',
......@@ -101,6 +101,11 @@ export default {
playerIns.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 @@
:type="playerType"
:datetime-range="datetimeRange"
watermarkText="方案智能"
@ptz-control="handlePtz"
/>
</div>
<div class="footer">
......@@ -69,6 +70,10 @@ export default {
handleDestroy() {
this.$refs.vionPlayer.destroy();
},
handlePtz(arrow) {
console.log('handlePtz', arrow);
},
},
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!