agsh / onvif

ONVIF node.js implementation
http://agsh.github.io/onvif/
MIT License
693 stars 236 forks source link

Incomplete preset list #175

Closed bartbutenaers closed 3 years ago

bartbutenaers commented 3 years ago

Dear, I have an open-source Onvif integration for the Node-RED IOT framework, which is build on this onvif library. I got yesterday a Github issue from somebody who has two problems with problems with his camera:

  1. After some time getPresets suddenly starts return an empty array.
  2. When a new preset has been added via the native app/webinterface of the ip camera, that new preset is not available in the output of getPresets.

So my first thought was that this library perhaps did some caching, which ran out of sync with the camera. But when I debug it, then it seems to me that there is no caching. Which means a request will be send every time to the camera. Can you please confirm that this is correct?

If so, then I think there is an Onvif implementation bug in his Chinese camera...

Thanks!!! Bart

agsh commented 3 years ago

Yes, caching is present in the cache, you need to call again getPresets. Calling this method can be failed by your cam, sorry(