tinypilot
tinypilot copied to clipboard
WebRTC frontend: automatically reconnect after network interruption
Not sure this will be a common problem, but in case the stream connection interrupts, the WebRTC frontend wouldn’t automatically re-connect.
But we can probably catch the error event and then implement a periodic retry, for example.
Per discussion in the POC PR, I’ve removed this from the 2.4.1 project. Due to the automatic MJPEG failover that we have now, this is not as severe anymore. The implementation might also turn out to be more complicated than we initially expected.