Main goal is realtime counting viewers of HLS (HTTP Live Streaming).
- The script download original playlist (
.m3u8
file). - All relative links in playlist converts in absolute.
- Client download modified playlist.
- The script collect info about all clients and calculate viewers count.
npm i
.- Copy
config-example.json
toconfig.json
and edit. npm start
.
Viewers count getting by client via WebSocket. See example/index.html
for more info.