Manual Recording SDK

Hello,

I’m integrating the Manual Recording command using the SDK in C#. I’ve read some posts that mention the recording command should be implemented using MessageId.Control.StartRecordingCommand, and there’s even an example that follows this approach. However, the behavior of this command doesn’t match the behavior of the Milestone Client button. For example, if “Stop manual recording after X minutes” configuration is set, this does not work—it keeps recording until a stop recording command is sent. Is there another method within the SDK that should be used?

There isn’t another method.

You need to read the configured value “Stop manual recording after X minutes”.

You need to send the start recording message, wait the configured time using a timer event or similar and then send stop recording message.

Let me know if you need a hint on any of these.

Thank you very much for the information; it’s clear how to proceed. To access this parameter, ‘Stop manual recording after X minutes’, I understand that we can follow the example from the Configuration API Client.

Yes, correct.

I personally prefer the strongly typed classes (ConfigurationItems classes)

Camera camera = new Camera(cameraItem.FQID);
int time = camera.ManualRecordingTimeoutMinutes;

Perfect, we will try to implement it with this. Thank you so much for the answer.