Applying camera settings to plugin.
AnsweredPlug-in settings can be set by users, and notified via SettingsReceived().
SettingsReceived() can process and send settings to the device(camera).
But, when the camera's settings changed, I think there is no way to apply the camera's settings to plug-in settings.
There is getPluginSideSettings() , but this function only called after SettingsReceived().
Are there any solutions?
-
Hello Jason Shim ,
> SettingsReceived() can process and send settings to the device(camera).
Do you mean a physical device?
> But, when the camera's settings changed, I think there is no way to apply the camera's settings to plug-in settings.Do you mean the situation when someone logged in to a physical camera via its web-interface and changed some settings?
JIRA-VMS-19392
0 -
Yes for both.
I'm asking that changed settings on the camera's web page can be applied to plug-in settings.
0 -
Hi,
There is the "Refresh" button in "Camera settings" window which can be used to make your plugin to re-read settings from the camera via its API.
Another option could be to create a separate thread in DeviceAgent periodically reading camera settings via API and saving them in internal data structure, such keeping settings information up to date.
0 -
Hi,
I've noticed that when I press refresh button, the VMS invoke getPluginSideSettings() function.
That can be a solution partially.
But, let's think about following scenario.
A user changed setting on the camera's web page, and another user opened the Plugins setting on Nx MetaVMS, then pressed Apply.
The later one doesn't know that the camera settings has been changed. The plugin send the settings on the VMS to the camera.
The settings made by former user are overwritten.Regarding above scenario, I think VMS should call getPluginSideSettings() before opening the Plugin settings.
0 -
Hi Jason,
You are right. It seems to be a bug.
0
Please sign in to leave a comment.
Comments
5 comments