远近焦

This commit is contained in:
bb_pan 2025-01-24 10:37:21 +08:00
parent 6f2f047ede
commit d02a6f68e3
1 changed files with 18 additions and 0 deletions

View File

@ -251,9 +251,11 @@ export default {
break
case 'focusIn':
console.log('Focus In')
this.handleFocusNear()
break
case 'focusOut':
console.log('Focus Out')
this.handleFocusFar()
break
case 'lightUp':
console.log('Light Up')
@ -419,6 +421,22 @@ export default {
this.requestPost('PTZ/C_PTZ_ZoomOutPicture?token=' + this.qxToken, params, (rv) => {})
this.handleStopZoom()
},
// -
handleFocusNear() {
const params = {
puid: this.row.puId,
idx: this.ballIndex,
}
this.requestPost('PTZ/C_PTZ_MakeFocusNear?token=' + this.qxToken, params, (rv) => {})
},
// -
handleFocusFar() {
const params = {
puid: this.row.puId,
idx: this.ballIndex,
}
this.requestPost('PTZ/C_PTZ_MakeFocusFar?token=' + this.qxToken, params, (rv) => {})
},
//
async updateWaterMark() {
try {