PTZ get absolute position not working in Management client plugin

Hi,

I’m building a plugin to test PTZ functionality. Already have an application that does the same actions using the component integration.

So I copied the code to my plugin but it seems like it doesn’t work.

This code gets executed without errors:

System.Collections.ObjectModel.Collection before = EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.Control.PTZGetAbsoluteRequest),camera.FQID);

But in plugin the ‘before’ is not filled, it does not contain any data.

PTZ functionality is not supported in Management Client environment. This is a known limitation.

But you can add, edit and remove PTZ presets in management client. So this means that the management client can control PTZ devices.

I don’t see how this isn’t possible. Should I use another way/command to move the PTZ device?

What I do in my code:

  • get current position
  • move a bit (Pan, Tilt, Zoom)
  • get position, if all changed = OK
  • return to first position

Even though you can do PTZ in Management Client, (unfortunately) message commands that do PTZ are not implemented in the Management Client.