Duplicate PTZ and about patroling

Hi,

Is it possible for duplicate the PTZ from one camera to another from admin plugin?

is patrolling supported in MIPS SDK?

Copying PTZ presets between two different cameras would not make sense. If you have the same physical camera in two recording servers in your system I am guessing that you can read the PTZ Presets on one of the instances and create them on the other instance. I am guessing as I have never tried and the presets could be different when applied on another recording server.

Note:

If two recording servers both try to steer the camera, out side going to the same PTZ preset, I foresee unpredicatable / erratic behavior on the movement of the camera.

Two patrollings, which can hardly be in sync, would give a different patrolling movement scheme than the desired scheme.

There is no support for patrolling in the MIP SDK. You can only trigger them indirectly via a rule or similar.

Hi Bo,

Yes, we have same physical camera added on two recording server and intend to duplicate the Presets on 1st to 2nd recording server.

Can you please guide with an sample availability.

With all the pre-requisites in place, most noteably that the camera PTZ is of absolute positioning type, this can be achieved with very little code using the newly introduced strongly typed configuration API classes. Code snippet

using VideoOS.Platform.ConfigurationItems;
 
Camera camera = new Camera(_camera.FQID);
PtzPresetFolder folder = camera.PtzPresetFolder;
folder.AddPtzPreset(textBoxPresetName.Text, "", pan, tilt, zoom);

Hi Bo,

We see this in new R3 SDK, if plugin is developed with 2017 R3 SDK will it work in older xprotect product.

We cannot say this too often: It is Milestone’s recommendation to always develop using the newest MIP SDK.

In this concrete case let me add this assurance.

When it comes to strongly typed Configuration API, they will depend on a server with support for Configuration API in general. Configuration API was introduced in 2014 and enhanced in 2016R2. The code snippet I wrote above will work in XProtect (c-code) servers 2014 version and newer.

https://force.milestonesys.com/support/articles/en_US/FAQ/about-MIP-SDK-compatibility-with-XProtect-product-versions

VideoOS.Platform.ConfigurationItems.Camera camera = new VideoOS.Platform.ConfigurationItems.Camera(cam.FQID);

          VideoOS.Platform.ConfigurationItems.PtzPresetFolder folder = camera.PtzPresetFolder;

          foreach (VideoOS.Platform.ConfigurationItems.PtzPreset pre in folder.PtzPresets)

          {

            MessageBox.Show(pre.DisplayName + pre.Pan.ToString() + pre.Tilt.ToString() + pre.Zoom.ToString());

          }

always gives the presetname, but pan,tilt,zoom always gives NaN

how to retrieve and save?

Pre-requisite. This will work on a camera where the presets are defined in XProtect but will not work on presets imported from device.

In the Management Client on the camera properties the Presets tab you have the “Use presets from device” option, if the option is set the PTZ Presets are imported and cannot be modified, neither in Management Client nor in Configuration API.

If this is not the explanation can you please tell me the camera make, model and firmware and outline the setup?