[ipcamera] Improve online/offline detection for ONVIF cameras #16332
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.
Add better support for checking online and offline when the camera is an ONVIF type.
Changes should now allow for edge cases where an ONVIF camera has no snapshot and hence no http server to use for checking online status.
Also should allow for cameras that do not support ONVIF events, so they fall back to the proven method of opening a HTTP connecting to the configured port.
Cameras that have working ONVIF event streams will not try additional methods as the open stream proves the camera is already online.