Start recording

Is there a way to start recording on any configured camera using the MIP SDK Mobile or the MIP VMS API. I have only been able to find how to do this using the C# Nuget package, but I am using both first.

Using Mobile SDK.

You can make two user-defined events, and use these two events for starting recording and stopping recording by making rules, one rule for starting recording of a camera and one rule for stopping it.

Then you can use RerquestActivation from the Mobile SDK.

https://doc.developer.milestonesys.com/mipsdkmobile/index.html?base=reference/protocols/mobile_command.html&tree=tree_1.html

Using the Events API. (2025R1 or later)

You can use the StartRecording event which is precofigured in the XProtect VMS.

POST /api/rest/v1/events

The POST body should look like this (example):

{ “type”: “85867627-b287-4439-9e55-a63701e1715b”, “source”: null, “datatype”: “free-form”, “tag”: “my first posted tag”, “data”: { “TargetDevices”: “ad927d28-f086-47b4-aac0-3adc0cc8cf64” } }

where

  • 85867627-b287-4439-9e55-a63701e1715b is the id of the startRecording event type stopRecording has an id of 77b1e70d-ba8d-4bb8-9ee8-43b09746d82a)
  • ad927d28-f086-47b4-aac0-3adc0cc8cf64 is the id of the camera

If using Events API and the XProtect version is older than 2025R1 you can use the same method as I shown for the Mobile SDK, you hve to create user-dfined events and rules and then trigger the user-defined events using the Events API.

https://doc.developer.milestonesys.com/mipvmsapi/api/events-rest/v1/#tag/Events/operation/Events_Post

Thank you for you reply.