mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Support ONVIF exceptions when sending pan-tilt commands
This commit is contained in:
parent
4d522be7fb
commit
3c2179c4db
@ -349,7 +349,10 @@ class OnvifController:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try:
|
||||||
onvif.get_service("ptz").ContinuousMove(move_request)
|
onvif.get_service("ptz").ContinuousMove(move_request)
|
||||||
|
except ONVIFError as e:
|
||||||
|
logger.warning(f"Onvif sending move request to {camera_name} failed: {e}")
|
||||||
|
|
||||||
def _move_relative(self, camera_name: str, pan, tilt, zoom, speed) -> None:
|
def _move_relative(self, camera_name: str, pan, tilt, zoom, speed) -> None:
|
||||||
if "pt-r-fov" not in self.cams[camera_name]["features"]:
|
if "pt-r-fov" not in self.cams[camera_name]["features"]:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user