- added zoom options per camera and oneshot button

- enhanced to remove painting when in zoom mode
This commit is contained in:
2026-01-12 15:10:40 +00:00
parent 61c85fdc3f
commit eb5eb69c28
9 changed files with 73 additions and 23 deletions

View File

@@ -23,10 +23,13 @@ const postZoomLevel = async (zoomConfig: CameraZoomConfig) => {
id: `Camera${zoomConfig.cameraFeedID}-onvif-controller`,
fields,
};
const response = await fetch(`${CAMBASE}/api/update-config`, {
method: "POST",
body: JSON.stringify(zoomPayload),
});
const response = await fetch(
`${CAMBASE}/Camera${zoomConfig.cameraFeedID}-camera-control?command=setAbsoluteZoom&zoomLevel=${zoomConfig.zoomLevel}`,
{
method: "POST",
body: JSON.stringify(zoomPayload),
},
);
if (!response.ok) {
throw new Error("Network response was not ok");