* [ipcamera] Handle empty snapshotUrls and XML encoded characters
* use unescape method from StringUtils
---------
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* Added connection check via IdleStateHandler events for sent onvif requests.
Also checking connect errors and setting new states connectError or refusedError accordingly.
On connect, only one request is sent to have less parallel actions in case of reconnect, timeout.
Moved GetCapabilities call to GetSystemDateAndTime response handler part.
Added support to disable automatic polling at startup.
* Fixed call of sendOnvifRequest (missed to remove one call of requestBuilder).
---------
Signed-off-by: Thomas Burri <th@thonojato.ch>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Co-authored-by: Matthew Skinner <matt@pcmus.com>
Make sure that SecureRadom is used whenever the random number
is used for cryptographic operations, e.g. as nonce/salt.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* FIX TAPO branded cameras require xAddr port to be different from the
main ONVIF PORT
* Fix for old API instar cameras.
---------
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Fix discovery crashes if network use is blocked by docker.
* Change log levels to be more useful.
* add better reolink discovery check
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Setting ffmpeg reference 'ffmpegMjpeg' to null after stopping convertion to fix automatic restart of ffmpeg process.
---------
Signed-off-by: Thomas Burri <th@thonojato.ch>
* [ipcamera] Fix servlet exceptions due to non unique names
[IP camera] on OH4 has the same servlet issue that was fixed by PR #14554. This PR uses that PR as a template to fix the issue in the IPcamera binding. (That issue being that only one camera was able to stream.) This was tested locally on OH4M2 and it works.
Signed-off-by: Bob Eckhoff <katmandodo@yahoo.com>
* Fix never ending WARN when HIK camera does not support alarm inputs.
* Streamline code.
* Update Instar support for 2k+ Generation.
* Fix alarm codes.
* Add CHANNEL_LAST_EVENT_DATA
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* [ipcamera] Fix multiple part handling for Dahua events
* [ipcamera] Call processSettings only when data contains no boundary
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* Add default translations for binding add-ons
This makes the texts used by these add-ons translatable with Crowdin.
To keep the PR simple, it only adds default translations for add-ons which do not yet have any default translations properties file.
We can do follow up PRs for adding missing key/values to add-ons that already have these files or to remove duplications.
There are several add-ons in this PR that do have non-English translation files, so I'll upload those to Crowdin when the PR is merged.
Signed-off-by: Wouter Born <github@maindrain.net>
* Add new channel
* Last Event Data channel finished.
* Remove info logging.
* Fix bugs
* Fix ONVIF wont use different ports in xaddr paths.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Fixes an issue now that the binding is not polling the snapshot anymore where the jpg could return an old image from cache.
* Fixes an issue that could be caused if you spammed the refresh key whilst watching ipcamera.mjpeg
* Improvements in stopping the servlet and stopping any open streams if the pause button is pressed on a camera thing.
* Reduces memory, thread and open file descriptor resource use.
* Fixes empty passwords create bad log output for logged ffmpeg commands.
* Fix for INSTAR cameras that created a WARN about bad user/pass when setting up the alarm server.
Closes#11301
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Move to using 8080 servlet not Netty.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Add some mjpeg features to servlet.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Fix autofps bug
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Reached feature parity.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Cleanup serverPort from cameras.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* bug fixes.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Refactor groups.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Bug fixes to groups
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Update readme
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Cleanup
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* clean up 2.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* bug fixes.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Improve snapshot fetching for autofps.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Make functions synchronized.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Fixes.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Abstract servlets
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Fix NPE warnings
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Remove ability to go child or parent folders.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* autofps improvement
Signed-off-by: Matthew Skinner <matt@pcmus.com>