Hi, we`re trying to start and stop recording cameras on Milestone Professional 2018 R1, which is E-Code.
I am able to do it on Essential+ 2019 R2 (C-Code) by using the following code to start / stop camera recording and enabling the Default Record on Request rule:
• EnvironmentManager.Instance.SendMessage( new VideoOS.Platform.Messaging.Message(MessageId.Control.StartRecordingCommand), camera.FQID);
• EnvironmentManager.Instance.SendMessage( new VideoOS.Platform.Messaging.Message(MessageId.Control.StopRecordingCommand), camera.FQID);
However, I don`t see the notion of `Rules`on Professional 2018 R1, which is E-Code. On the camera properties, under recording, I can set each camera to record on Always / Never / Event. Is this feature supported on Professional 2018 R1 (E-code) ?
Hi Rie, I am effectively using the StartRecording / StopRecording message calls to start and stop recording, like in the VideoViewer sample. (EnvironmentManager.Instance.SendMessage( new VideoOS.Platform.Messaging.Message(MessageId.Control.StartRecordingCommand), fqid)
However, on E-Code, it seems like the cameras “ignore” the messages by default, and keeps on recording. I guess it has something to do with the recording mode of the camera. On E-Code Professional 2018 R1, I can set a camera to record on Always, Never, or specify Events for start / stop recording. My cameras are currently set to record on Always with a very small motion detection sensitivity, and with these settings they ignore the start / stop record messages being sent.
Do my cameras need to be set to record on something else than Always? I tried fiddling and set the recording to start and stop on manual events (one I created named startrecording, another one created I named stop recording), but to no avail.
If the camera is streaming and set to record on motion or record on event or record never, then it starts recording.
If the camera is not streaming, but is offline, then the function will not bring it online, so no recording starts.
If a camera is streaming and recording because of motion or event (or set to record always) you cannot stop the recording, the stop recording from the sample is only to revoke the start recording.
If you make sure the camera is always streaming, is in the scheduler as online, and the camera is set to record never, then you can control the recording using these functions.
If you make sure the camera is always streaming, is in the scheduler as online, and the camera is set to record on motion or on event, then you can make sure there is recording using these functions, but there might be recording at other times also based on the settings.