Commit Graph

3 Commits

Author SHA1 Message Date
root
898af6022b Improve stream reliability with stall detection and buffer management
Add video stall detection that monitors currentTime and auto-reconnects
after 15s of frozen video. Add MSE SourceBuffer trimming to prevent
QuotaExceededError from killing streams silently. Handle appendBuffer
errors with safe wrapper and SourceBuffer error listener. Wait for ICE
gathering before sending WebRTC offers. Add go2rtc stream availability
endpoint. Improve backend proxy error logging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 10:00:13 -06:00
root
f26acc409a Fix WebSocket proxy ping timeout killing MSE streams
The websockets library defaults to ping_interval=20, ping_timeout=20.
go2rtc doesn't respond to these pings, so the upstream WebSocket was
being killed after ~50 seconds causing all camera streams to freeze.

Disabled ping_interval and ping_timeout on the upstream connection.
2026-02-26 16:01:22 -06:00
root
ba2824ec56 Add go2rtc proxy to fix CORS-blocked WebRTC/MSE streams 2026-02-25 22:11:56 -06:00