We have our own driver, and we want the view item toolbar plugin to only show for specific cameras, is this possible?
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.
Rik
(Rie Kiuchi (Milestone Systems))
October 7, 2021, 6:55pm
2
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.