Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
viewers: count WHEP sessions only once connected master
WebRTCPlayback2 incremented the viewer count as soon as the SDP answer was minted, so handshakes that never established — the web player churns through several peer connections while loading or before falling back to HLS — each counted as a viewer until ICE failure detection fired seconds later. That's the "count jumps +4-5 then settles" spike. Count on PeerConnectionStateConnected instead, with the increment/decrement paired under a mutex so a connect racing teardown can't leak a count. Also point ViewerDec's per-protocol branch at ViewersTotal — it was updating/deleting the per-streamer gauge with a protocol label. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author Eli Mallon Co-author Claude Fable 5 Date (Jun 10, 2026, 9:39 PM UTC) Commit 02c649d9 02c649d97e12fcc0723afefa6ea69a3147772def Parent b3c79b94 b3c79b94b997f26a6e481d667f8a97fa1478f8e4