Enabling and changing Icon of View Item Toolbar Plugin

  1. We have our own driver, and we want the view item toolbar plugin to only show for specific cameras, is this possible?
  2. We need to change the icon color depending on the state of something in our driver. Can we modify the icon on the fly?

Edit: The answer for 2. is YES! We can change the icon at runtime by changing the _icon in the example.

I think you can simply use the Visible property of the ViewItemToolbarPluginInstance..

bool VideoOS.Platform.Client.ViewItemToolbarPluginInstance.Visible

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_view_item_toolbar_plugin_instance.html&tree=tree_search.html?search=viewitemtoolbarplugininstance

together with the code in the SCToolbarPlugin sample that finds out what camera is in the view (on the Activate method), I imagine you can solve this. I have not performed the experiment, but I am confident it will work.