have designed a workspace as attached in the image. Now my requirement is like , I want to record a video for 60 seconds on a particula camera based on my user-defined event. I would like to know how to record a video on a particular channel based on the channel ID and start time and store the same, so that I can preview the recorded video at a later point of time.
I found the below code from samples , but couldnt understand how the video is stored behind.
EnvironmentManager.Instance.PostMessage(
new VideoOS.Platform.Messaging.Message(MessageId.Control.StartRecordingCommand), _selectItem1.FQID);
Is it the right way to record the video?
Yes, it is the way to ask for recording to be performed. It corresponds with the “Start manual recording” button you see on the toolbar under a camera view in the Smart Client.
The administrator can setup if a role (group of users) have permission to start and stop manual recording.
From what you describe there is a simpler solution though. You can instead create a rule that when the user-defined event happens the camera should record for 60 minutes. No coding (except if you do the code to trigger the event).
Now, if the issue is that you want to make store of the times you sent the events, I will based from my understanding, advise you not to make your own store of this. You can query when the event happened and use that.
If you decide to store this or other information I recommend that you explore the Property plugin sample. - https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/property/readme.html&tree=tree_1.html
PS. I can’t see an image attached, I hope I have understood your question without seeing an image.