[ipcamera] Fix ONVIF alarms streams may stop and not restart on some cameras. #16777
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes a bug where some cameras reply with a different ONVIF reply content then expected and the ONVIF alarm stream halts and will not restart when this occurs. Did not effect any of the cameras that have their own API, this was only for ONVIF and also REOLINK thing types.
Hikvision: Bug fix for issue reported on forum and also confirmed it was solved with this change. The binding cleared an arraylist (?) and then tried to SET the first element. Fixed by using ADD as it can only be empty at that point in the code.
https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771/2947
Reolink: Fixed some fence post errors that were causing some cameras to show the wrong snapshot or stream from a different channel on the same NVR. This was reported on the forum and also has been confirmed as being fixed with these changes here.
https://community.openhab.org/t/adding-reolink-api-to-the-ipcamera-binding-beta-testers-needed/142202/188