Sending PTZ controls events to a camera (left, right) on a remote server is working with component integration in a test project but not in an admin management client environment. FQID and everything else is the same. Why i can't move the camera?

It might registers a message to the event server? The test project is a component integration sample - which works:

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

However, in my implementation - a management client plugin integration which is based on this test project - it does not work.

VideoOS.Platform.Messaging.Message msg = new VideoOS.Platform.Messaging.Message(MessageId.Control.PTZMoveCommand, VideoOS.Platform.Messaging.PTZMoveCommandData.Left);
 
            EnvironmentManager.Instance.SendMessage(msg, this.SelectedCamera.FQID);

Milestone Development will start an investigation.

Hey Rie, any updates on this one?

We don’t have any news from Milestone Development. We will get back to you when we receive a news from them.

Hi.

Actually we have an update as of today (messages just passed eachother it seems). PTZ control has never been implemented for Management Client environment and unfortunately this is not stated in the documentation.

We will make sure that it is implemented for the 2021 R1 release (as 2020 R3 is already closed :frowning: ).

Also does not seem to work in the Smart Client environment when using the Messaging API. I did some testing using the MessageTester SDK sample and could not get it working.

Hi Manuel,

You should not be using the messaging for these commands. Use instead EnvironmentManager.Instance.PostMessage (or SendMessage).

The MessageTester sample is using EnvironmentManager.Instance.SendMessage for sending messages.

Hmm maybe I misunderstood you because that is also what I suggest you should do (either SendMessage or PostMessage). I thought you meant that using MessageCommunication did not work.

So are you saying that using EnvironmentManager.Instance.SendMessage for PTZ in Smart Client does not work?

Yes, exactly. PTZ control is not working in both environments (Smart & Management) for me.

I just tried with SC View and Window Tool sample and it works fine for me. Could you please try with that sample?

Yes thank you, with the SC View it’s working.