feat(videoDeviceMgmt): 添加监控调试页面的控制功能

- 在 control 方法中实现了对不同操作指令的处理
- 添加了对上下左右移动、变焦、焦点调节、灯光控制、拍照和录像等动作的支持
- 优化了控制指令的打印输出,便于调试
This commit is contained in:
jjLv 2025-01-22 15:53:05 +08:00
parent c56658ac64
commit 117aa3c224
1 changed files with 41 additions and 0 deletions

View File

@ -180,6 +180,47 @@ export default {
methods: {
control(action) {
console.log('Control action:', action)
switch (action) {
case 'up':
console.log('Up')
break
case 'down':
console.log('Down')
break
case 'left':
console.log('Left')
break
case 'right':
console.log('Right')
break
case 'zoomIn':
console.log('Zoom In')
break
case 'zoomOut':
console.log('Zoom Out')
break
case 'focusIn':
console.log('Focus In')
break
case 'focusOut':
console.log('Focus Out')
break
case 'lightUp':
console.log('Light Up')
break
case 'lightDown':
console.log('Light Down')
break
case 'capture':
console.log('Capture')
break
case 'record':
console.log('Record')
break
default:
console.log('Unknown action:', action)
}
},
toggleCloud() {
console.log('Toggle cloud platform')