mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 21:47:39 +02:00
The P2S firmware drops RTSP sessions after a few seconds with an I/O error. The backend treated this as fatal, ending the MJPEG stream and forcing the frontend through a full reconnection cycle. Added transparent auto-reconnection: when ffmpeg's RTSP connection dies, it respawns immediately and continues streaming MJPEG frames to the browser with only a brief freeze (~1s). Up to 30 reconnections before giving up.