Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
viewers: count live HLS playback sessions
Live HLS playback never touched the viewer count: only the WebRTC path called IncrementViewerCount, so an HLS-only viewer showed as zero. Track sessions by the sid already threaded through every playlist/segment URL: the first request for a (streamer, sid) counts the viewer, and a session idle past 30s uncounts it via a janitor sweep. Media-playlist and segment requests are the heartbeat; master playlist fetches don't count, so one-shot fetchers (preview cards, health checks) aren't viewers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author Eli Mallon Co-author Claude Fable 5 Date (Jun 10, 2026, 9:27 PM UTC) Commit
Copy SHA
Parent 0a7d0993 0a7d0993b88adbc5b152be88dd38aaaead0097cb