fix: Restore camera layout support in image view (#1831)
* Closes #1804
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user