Is it possible to control Digital Zoom on Smart Client's Floating Window? In both Live and Playback workspaces. (PS: not on ImageViewerControl)

Hi, continue from my previous question in the following link:

https://developer.milestonesys.com/s/question/0D73X000007WzlE/is-it-possible-to-control-digital-zoom-on-smart-client-in-both-live-and-playback-workspaces-ps-not-on-imageviewercontrol?s1oid=00D200000008Uid&t=1573199087779&s1nid=0DB0O000000Kzmh&emkind=chatterCommentNotification&emvtk=JcMojC56v5n2ZyX144mERsrwSBWOfSi1wH0.3YupTiA%3D&searchQuery=&s1uid=0050O000009U6xz&emtm=1572941707758&fromEmail=1&s1ext=0

I am able to perform digital zoom on Smart Client, in both Live and Playback workspace, (for both PTZ and non-PTZ camera), but it is only limited to the camera on the Smart Client Main Window, using my own developed Smart Client Background Plugin (modified from SCWorkspace Plugin Sample) after referred to Smart Client View and Windows Tool sample.

E.g. : When I launch a Floating Window of the same SmartWallMonitor (same monitor from the Main Window where the digital zoom is succeeded), only the camera on the Main Window View Item is digital zoomed; the View Item in the corresponding Floating Window remained un-zoomed.

I even received the following error notification when I tried to send the same command (using the plugin I developed) copied from Smart Client View and Windows Tool sample.

SC - PTZ to fixed camera is not supported

The line of command is shown below:

EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.Control.PTZMoveCommand, PTZMoveCommandData.ZoomIn),
                _selectedCamera == null ? null : _selectedCamera.FQID, null);

From the command, the destination FQID is the FQID of the selected camera, but somehow the digital zoom effect is only reflected on the Main Window but not the Floating Window.

Setting destination FQID as null resulted the same outcome.

Am I missing something?

Thanks in advance.

Update with my finding:

The digital zoom only work when the Destination FQID is null;

(In Smart Client View and Windows Tool sample:

  • go to PTZ Move tab
  • click on the Select camera Item Picker
  • select no camera by cancelling the Item Picker)

From what I observed, the digital zoom command will affect on the selected ViewItem of the Monitor when the Destination FQID is null.

Is the Message of MessageId.Control… only take effect on Main Window?

I try sending it after selecting the ViewItem on Floating Window using MessageId.SmartClient.MultiWindowCommand, but failed..

I am sorry for late reply. We have consulted Milestone Development experts.

Your observations are correct, but for the most part it is by design.

There is no way of doing digital zoom for a specific view item unless it is selected.

We put this on the wish-list for future development. We cannot say when (or even if) this will be developed.

NOTE: As to the dest=NULL always targeting the Main window selected view item and not the active view item (potentially in another window), that is a bug which will be fixed for 2020 R2.