Dynamically change the camera source in the Alarm Preview window

Milestone Corporate 2024 R1

Milestone SDK 2023 R2

Can we dynamically change the alarm’s existing camera source in the alarm preview window to another camera source?

We tried using the ImageViewerAddon sample to change the camera source, but we are always getting ImageViewerAddon.ViewItemIndex as -1.

It is not supported to change the source camera for an alarm or in the Alarm Preview.

ImageViewerAddon.ViewItemIndex as -1 sounds wrong and is a mistake.

Thinking of a workaround. It would be possible to develop your own control for the Alarm Preview, but it is important to note that it would not replace the original camera view but rather add a second view.

The Smart Client Alarm Preview plugin sample is an example of this. - https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/alarmpreview/readme.html&tree=tree_1.html

I came upon this one, I can’t decide if it could be relevant… - https://developer.milestonesys.com/s/question/0D5bH000010SZ0jSAG/solved-viewitemindex-is-1-in-newimageviewercontrolevent-on-a-live-camera-view