项目作者: Izumi-kun

项目描述 :
HLS playlists proxy with counting viewers
高级语言: JavaScript
项目地址: git://github.com/Izumi-kun/hls-playlist-proxy.git
创建时间: 2018-01-23T18:37:34Z
项目社区:https://github.com/Izumi-kun/hls-playlist-proxy

开源协议:MIT License

下载


HLS playlist proxy

Main goal is realtime counting viewers of HLS (HTTP Live Streaming).

How it works

  1. The script download original playlist (.m3u8 file).
  2. All relative links in playlist converts in absolute.
  3. Client download modified playlist.
  4. The script collect info about all clients and calculate viewers count.

Usage

  • npm i.
  • Copy config-example.json to config.json and edit.
  • npm start.

Viewers count getting by client via WebSocket. See example/index.html for more info.