Viewing a video clip related to an event

We are newbies at Milestone systems and we are integrating our web GIS application with Milestone Xprotect VMS. We receive an alert notification detected by an AI Appliance that examines the video streaming and sends it both to the VMS and to our system (with the localId of the event, assigned by VMS).

In the use case we are implementing, a GIS user sees the alert on the map and from this he/she wants to quickly control what generated the alert. So, the web app should talk with the Milestone server fetching a short clip of the video, centered in the exact timestamp of the event.

We understood that with REST APIs we can only access metadata information, but no videos. To get these we must use the MIP SDK, isn’t it? But how can we get this clip starting from the information obtained from the Event? Is there already a video clip cut from the entire video associated to the event or should we ask for an extraction with start time and end time? Could you show me a coding example?

Hello,

Can I clarify how you want to show the video to the user?

If you want to view the video in an ImageViewer, there is a sample called Video Viewer:

https://doc.developer.milestonesys.com/mipsdk/index.html?base=samples/componentsamples/videoviewer/readme.html&tree=tree_2.html

(The sample shows live/recorded video for two cameras.)

If you want the video in some externally readable format, you may need something like Export sample.

Export Sample

https://doc.developer.milestonesys.com/mipsdk/index.html?base=samples/componentsamples/exportsample/readme.html&tree=tree_2.html

Smart Client Export

https://doc.developer.milestonesys.com/mipsdk/index.html?base=samples/pluginsamples/scexport/readme.html&tree=tree_1.html (This is a plugin sample)

Samples are available here : https://github.com/milestonesys

Please explore and check the samples if they are fit for you. If not, please tell us how you want to view the video.