We have a requirement to do something similar as the Axis Optimizer. We need a new tab under the Rules and Events section, the list of items should show a filtered list of camera or hardware.
- How to we add a new tab under Rules and Events?
- Do we need to re-add item nodes for each camera or is there an easier way to do this?
- (Edit) Assuming (2) can be done using the SDK, is it possible to get all the camera groups so that we can apply settings to several cameras instead of one-by-one?
Thank you.
You need to use PlacementHint when you overwrite the ItemNodes in your plugin definition.
https://doc.developer.milestonesys.com/html/index.html?base=miphelp/namespace_video_o_s_1_1_platform_1_1_admin.html&tree=tree_search.html?search=rulesevents
https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_admin_1_1_item_node.html&tree=tree_search.html?search=itemnodes
A little example from Milestone internal code, this defines the ItemNodes for analytics events..
_analyticsEventsNode = new ItemNode(
AnalyticsEventItemManager.ItemKind, Guid.Empty,
StringResources.AnalyticsEvents, analyticsEventImage,
StringResources.AnalyticsEvents, analyticsEventImage,
Category.Text, false, ItemsAllowed.Many,
new AnalyticsEventItemManager(), null, null);
_analyticsEventsNode.SortKey = 1000;
_analyticsEventsNode.PlacementHint = PlacementHint.RulesEvents;
_analyticsEventsNode.PropertyHeading = StringResources.PropertyHeading;
_itemNodes.Clear();
_itemNodes.Add(_analyticsEventsNode);