Detect unavailable stream with Android IP Webcam

Hi,
The video stream from my old Android phone is not always available (Android IP Webcam integration). The issue comes from my phone (a bit old and not so powerful). The workaround is very simple: when I see the stream is unavailable, I simply quit and relaunch the app remotely on my phone, using Tasker.

However, I can’t fully automate this task because there is no sensor or attribute with this integration that indicates the stream is not available. I think this function could easily be implemented - The frontend shows a broken image when the stream is not available.
Sans titre

Thank you for considering this!