What is the best way to disable recording on a camera through the SDK?

I saw that the there is an EnableProperty in the config API, but just wanted to verify if I’m on the track. Thank you.

If you disable a camera it becomes unusable, neither the recording server not the clients know it exists, if this is what you need then you can disable the camera.

If you want the camera to be usable but just stop recording, you will need another method.

What you can do is to setup your own recording rule and then control it by raising events that can trigger the rule’s stop action.

It is important to understand that if you have two rules that govern start and stop of recording then if just one rule say start then recording will be started. A good example to illustrate this is the start and stop recording button in the VideoViewer sample. If the camera is not recording otherwise the buttons can control the recording. If the camera is doing a record on motion (default rule) then you can start recording when there is no motion, but the stop recording button has no effect when the camera is recording because of motion detection.

If one rule says record you can have many rules saying stop recording but the recording will happen.