I need to develop plugin for Smart Client with 2 new buttons in the toolbar (or two overlay buttons) that will:
- turn on/off permanent privacy mask for a specific camera (so the stream will be turned on, not visible, and than turned on again)
- turn on/off liftable privacy mask for a specific camera.
Any help with that will be highly appreciated.
Thank you!
You can do both overlay buttons and toolbar buttons. Have a look at the ActiveElementsOverlay sample for an example of the former and the SCToolbarPlugin for the latter.
However, it is not possible to lift a permanent privacy mask (thus the name). Provided the user has appropriate access rights you can of course reconfigure the camera to have a privacy mask or not, but that will only affect the stream going forward and is not the same as lifting (have a look at the ConfigApiClient sample for inspiration on how to configure privacy masks).
The liftable privacy masks cannot be applied/lifted on a per camera basis. Only the general lift/apply functionality in SC is available.
Thank you Peter!
Maybe there is a way to use something simple - like displaying JPG/PNG or just drawing a rectangle using whole width and height of the box?
If yes, can you provide me more information on that? Thanks!!!
You can easily draw a rectangle or similar on top of the video. Have a look at the ActiveElementsOverlay again - it shows how to put different shapes on top of the video and they don’t necessarily have to be active.
However, be aware that with such a solution the plugin has to be installed on all machines - if it is not present on one installation the video would be fully visible. And in other areas than the standard video viewing ones the mask would also not be shown - e.g. in exports.
Hi, any updates on this? We need to be able to lift/unlift the mask using SDK/API
No, it is unfortunately still not supported to change the state of the liftable masks in the Smart Client from the SDK.