How to send camera feed to external server when motion is detected?

I have got a PTZ camera with a normal camera and a IR camera. When a motion detection rule is triggered in XProtect, I would like to send some information about the camera (e.g. id and position) to an external server, which will then fetch the feed from the two cameras and run some image analysis.

I was wondering if someone could offer me some hints on what the recommended way would be to solve this? Maybe there is a MIP SDK sample that puts me on the right path?

My first thought is to create a plugin for sending the information, but maybe there are better solutions?

Please see this sample Status Viewer sample -

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

This sample shows how to dynamically show status on items such as server, camera, event etc. All valid items are retrieved and presented in a tree. When state has changed or an event has been triggered, the tree item’s colour is updated and the update is listed in a list box.

When your devices detect a motion and trigger an event, then you will be able to inform it to the external server with a format that you would like to use.

By the way, this sample is a standalone sample, which I think is better for this purpose, but you can convert it to a plugin integration.

Regarding the external server which would then fetch the feed, there is no ways to “send” feed from XProtect to it using SDK. It is possible to signal the external server which then can retrieve image from recording servers. A standalone sample that shows video is the Video Viewer sample.

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

Thank you very much for your reply, I will have a look at those examples, and using the standalone solution seems like a great idea.

Best regards,

Lenny