I am using the continuousMove and moveStop to control a hikvision PTZ camera, however the control is not success. May I confirm the usage and the functionality of these command?
There is a demo part of usage, onvif_data and onvif_session are inited.
if (x == 0.0 && y == 0.0 && z == 0.0)
{
// Stop both pan/tilt and zoom
auto result_pan_tilt = moveStop(PAN_TILT_STOP, onvif_data);
auto result_zoom = moveStop(ZOOM_STOP, onvif_data);
if (result_pan_tilt == 0 && result_zoom == 0)
{
return true;
}
else
{
std::cerr << "Failed to stop PTZ movement" << std::endl;
std::cerr << "Error: " << onvif_data->last_error << std::endl;
return false;
}
}
and result in
Failed to stop PTZ movement
Error: ter:InvalidArgVal moveStop
Additional log when init:
Found and connected to camera at 172.30.1.98
Camera name: UNKNOWN CAMERA
Serial number: DS-2DC4423IW-D20220704AACHS6K24339421
PTZ Configuration:
PTZ Service URL: POST /onvif/PTZ HTTP/1.1
I am using the
continuousMoveandmoveStopto control a hikvision PTZ camera, however the control is not success. May I confirm the usage and the functionality of these command?There is a demo part of usage,
onvif_dataandonvif_sessionare inited.and result in
Additional log when init: