We have a custom ImageViewerControl that adds colored borders to a camera view.
We would like to use it inside a Smart Wall preset. That way, we can create rules when event 1 is received we can display preset 1 with red borders on monitor 1, and on event 2 we can display preset 2 with yellow borders on monitor 2.
So far in the Smart Client I can select the view item and send it to the Smart Wall Monitor 1 Position 3, but I cannot preconfigure a preset using this kind of view item.
Is there a way to do a view item for smart wall presets? maybe a management client plugin? maybe we can modify the default ImageViewerControl for all items of Smart Wall presets?
If that’s not possible I think our only alternative would be Smart Client Scripting, where we don’t use the smart wall but simply script view loadings. Is there a way to execute `SCS.Views.SelectView(“Private.Views.View1”)` after the Smart Client is loaded (not in a .scs file)? Maybe by creating a custom plugin that has some socket that listens to external commands? We could then do things like SCS.MultiWindow.MultiWindowOpenFullScreenWindow(“Private.Views.View1”, 0); on event 1 and SCS.MultiWindow.MultiWindowOpenFullScreenWindow(“Private.Views.View2”, 1); on event 2, etc
It looks like I can control the smart wall using the SDK. It shows I can pass XML containing viewitems. Can I use viewitems from my own controls with colored borders?
Which means I could setup rules that triggers the .bat which in turns calls a binary of mine doing the appropriate thing (set the correct smart client view or configure the smart wall).
We would suggest for you to use Background plugin in Smart Client.
Also, you may have an inspiration from Smart Client View and Window Tool. This sample includes areas that show most of the messages supported in the Smart Client, please see this link -
@Rie Kiuchi (Milestone Systems) thanks, just to be clear you mean to use a background plugin like in https://www.youtube.com/watch?v=qjM0JYhnx4Y and code my own rules which in turns does what I want in the smart client?
No, I am sorry I was not clear in my previous response. You could also go the way of adding rule actions in a background plugin in the Event Server as demonstrated in the YouTube video, but what I meant was a simpler approach where you make a background plugin for the Smart Client. In that way you can simply listen for the desired events directly in the Smart Client and then by using some of the messages available there you can then control the views, etc.
Depending on what you want to achieve you might also want to add an administration plugin part for the Management Client, so that the admin can configure which events to react on and other settings.