If you ever used the Android app, see this thread. I suspect the leak you refer to having issues with in the past is in the displaying of images and is not part of my binding but the core of Openhab or the a app and the way it handles the image data…
I run only a single camera currently for weeks on end with no issues, however I don’t run the camera on a tablet non stop like you appear to be doing. I did do some testing where I ran the new stream non stop for over two hours watching the heap to see if it grew whilst monitoring memory/threads and objects, did not find any issues. The stream ran without stopping for over 2 hours when I got sick of watching and stopped it.
In regards to your stream stopping, does this happen only on Foscams or is it happening on the Hikvision as well? If on both it may be a network issue and worth fault finding if it may be a bad cable or something that is simple to replace.
The binding copies the stream and will not stop the stream from the camera to the binding if you are watching it on multiple tablets, this could be the reason why the same band aid fix of doing a refresh does not work. It only stops the stream if you stop or refresh when only 1 tablet is showing the stream. Having the camera going to two tablets would mean the original connection to the camera never stops and your work around fix would not work if the camera to the binding develops an issue.
I’ll run some tests and look at what logging is in the binding to see if a trace would turn up more info.
@dastrix80
The binding does not give me high CPU so if you have that occurring it is an issue on your system which no one else has reported and I have not seen it happen here. So I suspect you would not see any difference by changing to a QuickSYNC system as currently the binding does not do any transcoding. In the future the binding may do transcoding and when that is the case QuickSYNC will help for sure.