Hi,
I have an alarm that gets triggered by an event from a plugin. I set up a rule that creates a log entry and a bookmark every time this event occurs. I want the Playback view to show the looping video around this bookmark (10 seconds before and 10 seconds after) from the related cameras. I want it to automatically set the view to this new looping video from the new event/bookmark for every time the event is triggered.
Additionally, how would one create a rule via plugin instead of creating one manually?
Thank you!
Step one would be to search for and get the bookmark.
Please explore the Bookmark Creator sample on how to use this.
https://doc.developer.milestonesys.com/html/index.html?base=samples/bookmarkcreator_component.html&tree=tree_2.html
If you create you own client you can control the playback by going to the start time. While playing back monitor the time and stop when playback has reached the stop time and resume at start time.
Please explore the Video Viewer sample.
https://doc.developer.milestonesys.com/html/index.html?base=samples/videoviewer_sample.html&tree=tree_2.html
You can do some form of configuration work using Configuration API but unfortunately the Configuration API does not have support for creating rules. (It is on the wish-list for future enhancements to the Configuration API.)
If you want to use the Smart Client instead of a application you develop you should develop a Smart Client Plugin.
Please explore the Smart Client Independent Playback plugin sample.
https://doc.developer.milestonesys.com/html/index.html?base=samples/scindependentplayback.html&tree=tree_1.html