Plugin configuration for Advanced Object Search
AnsweredHi,
About plugin for advanced object search, can items in Enum type change during runtime?
As the snapshot below, I have three default items VIP/Stranger/Blocklist for Group attribute.
The use case is that the Group items may be different according to user's setting. For example, user can add a customized group. Thus, I cannot define the value in advance.
Is there any way that I can send some requests to the plugin dll when Nx server is running, and make the field change accordingly?
For example, when user add a new Group "Manager" in our system, and we tell plugin. Then the page of advance object search can show "Manager" item in Group immediately.
Thanks.
-
Hello,
Is there any way that I can send some requests to the plugin dll when Nx server is running, and make the field change accordingly?
Yes, there is a way. Since all the object types are declared in so-called manifest, a plugin can call DeviceAgent::pushManifest(). The updated types will be available for all DeviceAgent instances, i.e. for all cameras the plugin is enabled on.
For example, when user add a new Group "Manager" in our system, and we tell plugin. Then the page of advance object search can show "Manager" item in Group immediately.
Object type changes don't appear immediately. You'll need to reopen Advanced Search window.
Please sign in to leave a comment.
Comments
1 comment