I’m using Milestone MIP SDK 2020 R2. By example “PTZandPresets”, I can only read presets that I have previously created, but the camera has its own presets. I would like to know how I can read camera presets.
I know that in previous versions of the SDK, it returned an XML with all the data of all the recorders and their cameras and within the part of each camera there was an array of presets. How can I get this array?
You cannot read the presets. You cannot do this because the Recording Server does not have the information. In this type of preset the only understanding the server has is that they are labels maintained by the device.
When this type of preset is used the Recording Server will send the goto command in this format: “Goto preset number 1”. Furthermore, the recording server or other components of the VMS will be ignorant as to what “preset number 1” is.
On how to trigger a preset please see the -private void comboBoxPresets_SelectedIndexChanged(object sender, EventArgs e)- of that sample.
Sorry it does not say goto, I guess I tried explaining a mental image of how I envision the inner workings.
Notice that TriggerCommand will work for both kind of presets, those stored in the XProtect as well as those that are only labels maintained by the device.
With ListPresets () method I can see the list, but first I have to load them into Management Client. I want to do with the SDK the same thing that the “Get” button does, that is, I need to have presets settings on a camera in advance.
So this is configuration of the device which should be done using the Configuration API. Unfortunately there is no support for getting preset from the device implemented in the Configuration API. Currently I see no workaround besides instructing users how to do this using the Management Client.
The request for this functionality has been noted in the wish-list for future development work, but so far it has never been prioritized.