modify PTZ center button to move camera to Home position for ONVIF

fix-non-showing-inputs
Moe Alam 2020-10-08 16:57:20 -07:00
parent a50d7041dc
commit d462978454
1 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,12 @@ module.exports = function(s,config,lang){
const controlUrlStopTimeout = parseInt(monitorConfig.details.control_url_stop_timeout) || 1000
switch(options.direction){
case'center':
callback({type:'Center button inactive'})
moveToPresetPosition({
ke: options.ke,
id: options.id,
},(endData) => {
callback({type:'Moving to Home Preset', response: endData})
})
break;
case'stopMove':
callback({type:'Control Trigger Ended'})