shbatm/MMM-RTSPtoWeb

Bad wifi connection

Imnotme1009 opened this issue · 3 comments

Hi and thanks for the cool module,

Due to some thick walls my wifi connection sometimes have fallouts, and when this happens the video turns black and never recover when the signal gets back.

When testing the video in the browser/RTSPtoWeb provided web page and there's a fallout, the webpage will show a loading screen followed by a resuming video feed when the signal comes back.

MM is running on a Pi4 along with the RTSPtoWeb service, the PI and the camera have fixed IP's and access point.

The Pi's internet download speed 6.89 Mbyte/s.
The Pi's internet uploadspeed 11.74 Mbyte/s.

Noticed it's not only when it looses wifi it doesn't reconnect. I've also tested with LAN and it's the same thing.

m-lines in answer and offer don't match.
WebRTC

For anybody who's having a problem kinda like this, I have a solution who works for me (I know it's bad one).
I installed xdotool to update the mirror once every 60min using a script run by pm2.

Now if the the stream fails for longer than what the module can handel (1-5sec), the stream turns black until it gets updated by xdotool.

Have you looked at carousel, I wonder if setting up two slides with the same modules and just switching between them every 60 minutes will fix this. That kind of forces modules to refresh .. if that fixes the black screen then you could just use MMM-Scheduler to add that. Just a thought for a all module potential fix