How to remove or hide camera side plugin?
AnsweredI am using Meta sdk to build a system plugin and do not want a camera plugin to show. I can modify the manifest to do this but I get a Plugin Diagnostic Event: "Plugin violated its contract: Manifest deserialization error - manifest is not a valid JSON"
What is the proper way to do this?
-
Hello Mike,
There are several options on regard of "hiding" the plugins.
The first one.
Device Engine can declare a "deviceDependent" capability in manifest. In makes plugin not be shown in the list in "System Administration".
The second one.
Device Engine has the method "bool Engine::isCompatible(const IDeviceInfo* /*deviceInfo*/)" in which you a developer can decide if the camera, represented by its IDeviceInfo interface is compatible or not. If it is not, the method should return FALSE, then DeviceAgent class instance will not be created for this particular camera and the plugin will not be shown on "Plugins" tab of "Camera Settings" windows. Note, since DeviceAgent class will not be created, no video frames will be passed to the plugin.
Please sign in to leave a comment.
Comments
3 comments