Applying camera settings to plugin.

In Progress

Comments

5 comments

  • Avatar
    Andrey Terentyev

    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
    Comment actions Permalink
  • Avatar
    Jason Shim

    Yes for both.

    I'm asking that changed settings on the camera's web page can be applied to plug-in settings.

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    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
    Comment actions Permalink
  • Avatar
    Jason Shim

    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
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi Jason,

    You are right. It seems to be a bug.

    0
    Comment actions Permalink

Please sign in to leave a comment.