Hi all,
I am developing a software integration for one of our client. I am using NodeJS They are using Xprotect 2022 R3, every functionality is almost ready except one. What I want to do is that, there are several presets of PTZ cameras. I want the camera to focus on the preset that I have the ID of it.
I followed up to this documentation but I couldn’t find what I want.
https://doc.developer.milestonesys.com/mipvmsapi/api/config-rest/v1/#tag/DeviceConfig/operation/postcamerasByIdptzPresets
Even if I follow this documentation to get cameras and presets in the system I am open to any suggestions.
The RestAPI can tell you the setup of PTZ Presets, but currently it lacks the ability to ‘execute’ a preset i.e. do a goto preset command.
For now you will have to use the MIP SDK or the Recorder Command Service SOAP Protocol.
If you can use it the MIP SDK offers this and we have a sample: https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/ptzandpresets/readme.html&tree=tree_2.html
The thing that I want to do is quiet simple but your codes are not easy to understand for me. can you please tell me how you fetch camera list?
In this part I cannot debug how you fetch it.
The sample is using the ItemPickerWpfWindow to let the user pick one camera.
For getting a list of cameras through code I believe the best explanation is here.. https://developer.milestonesys.com/s/question/0D53X00006Sow5dSAB/how-to-get-the-available-cameras
In the sample Configuration Access ((https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configaccessviasdk/readme.html&tree=tree_2.html)) you get a fuller overview of working with the configuration ((GetItems())) but the post above I think will more condensed give you what you need.