tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
2.89k stars 244 forks source link

WebRTC frontend: automatically reconnect after network interruption #945

Open jotaen4tinypilot opened 2 years ago

jotaen4tinypilot commented 2 years ago

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.

jotaen4tinypilot commented 2 years ago

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.