fix: Restore camera layout support in image view (#1831)

* Closes #1804
This commit is contained in:
Dermot Duffy
2025-01-16 20:00:31 -08:00
committed by GitHub
parent 0911e83670
commit 57a687d659
14 changed files with 533 additions and 340 deletions
+6
View File
@@ -1,5 +1,6 @@
import { CameraManager } from '../camera-manager/manager';
import { PTZAction } from '../config/ptz';
import { IMAGE_VIEW_ZOOM_TARGET_SENTINEL } from '../const';
import { PTZCapabilities } from '../types';
import { View } from '../view/view';
import { getStreamCameraID } from './substream';
@@ -42,6 +43,11 @@ export const getPTZTarget = (
targetID: substreamAwareCameraID,
type: type,
};
} else if (view.is('image')) {
return {
targetID: IMAGE_VIEW_ZOOM_TARGET_SENTINEL,
type: 'digital',
};
}
return null;
};