How to temporarily control multiple ImageViewerWpfControls at once.

Hi

I’m using two ImageViewerwpfControls in C#.

I control each independently, but in certain cases I would like to control both ImageViewerwpfControls with the same command.

Currently I’m sending the same command twice, is there a way to do it with one send? (Like a broadcast of a command)

I’d like your advice on this.

Thank you.

If you compare the two samples Video Viewer and Video Viewer Individual Playback you can observe: The first uses a common PlaybackController (class) where as the second uses different PlaybackController. The effect is so that if you in the first command it to go to a certain time both cameras will go, and the playback time will be in sync. In the second command it for one camera.

So the way I see it using a common PlaybackController means that one command rules multiple cameras.

If the commands you ask about is not for controlling playback but for something else the answer is no, there is no broadcast functionality on ImageViewerwpfControls in general.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/videoviewer/readme.html&tree=tree_2.html

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/videoviewer2playback/readme.html&tree=tree_2.html

Thank you for answering.

I would like to achieve the following No. 2 in the VideoViewer2Playback sample.

I understand that this can be achieved by executing EnvironmentManager.Instance.SendMessage twice, but I am looking for a way to combine this into one execution.

1. Issue Goto commands to the right and left separately.

(Execute EnvironmentManager.Instance.SendMessage twice)

2. Issue PlayForward commands to the left and right simultaneously.

(Execute EnvironmentManager.Instance.SendMessage once)

best regards,

Thank you for answering.

I would like to achieve the following No. 2 in the VideoViewer2Playback sample.

I understand that this can be achieved by executing EnvironmentManager.Instance.SendMessage twice, but I am looking for a way to combine this into one execution.

1. Issue Goto commands to the right and left separately.

(Execute EnvironmentManager.Instance.SendMessage twice)

2. Issue PlayForward commands to the left and right simultaneously.

(Execute EnvironmentManager.Instance.SendMessage once)

best regards,

Either you do the design #1 like in the VideoViewer where you share the same PlaybackController which means one Goto command will change the time for all cameras using the controller.

Or, you do #2 multiple PlaybackController and send multiple messages.

There is no middle way.

What you suggest is not possible: You would either #1 send one command for Goto and one command for PlayForward. Or, you would #2 send two commands for Goto and two commands for PlayForward.

Thank you for answering.

I will try to implement it based on the content provided.

best regards,