I am using the Custom Development Actions 1.3.16.0 to try and make an evidence lock based on a rule. Ultimately it will be a switch input on a camera to create an evidence lock for use in an interview room type situation. The idea is that it makes exporting/searching each interview much easier (more than just a bookmark).
I am struggling on the configuration of the specific rule as it is asking for an evidence lock target (can’t figure out how to configure those) as well as how to stop the evidence lock.
Does someone have advice on this setup or any documentation?
There is a sample on how to do Evidence Locks. https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/evidencelock/readme.html&tree=tree_2.html
Maybe you are aware or have the understanding already but otherwise please explore the sample.
From what you describe I see a discrepancy: When you create Evidence Lock you must know the start and end time of the lock. I guess if you want to ensure that it is started when the switch (on) is first activated you must use a guess on the period you need to mark, but I also envision that you might at the switch (off) activation you could the update the lock again.
I envision you use MarkedDataCreate to create the Evidence Lock and MarkedDataUpdate to later update it.
https://doc.developer.milestonesys.com/html/index.html?base=serversoaphelp/class_server_command_service.html&tree=tree_search.html?search=markeddatacreate
I guess a challenge is how to have the rule for the off switch to know what was the time or id of the on switch. Maybe you would need to persist some kind of property in your plugin to have this work. If yes maybe explore the Property sample.
https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/property/readme.html&tree=tree_1.html
Another option could be to put a bookmark when switching on, and the when switching off create an Evidence Lock covering that period from the bookmark until now.
A word of caution, if too much is marked as Evidence Lock and never deleted you could be in a situation where the disks are not big enough.
I hope this is useful even if I haven’t really a clear vision on how to best solve this..