Main goal is realtime counting viewers of HLS (HTTP Live Streaming).
- The script download original playlist (
.m3u8file). - 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.jsontoconfig.jsonand edit. npm start.
Viewers count getting by client via WebSocket. See example/index.html for more info.