illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.9k stars 1.51k forks source link

Ca not calculate the exact number of clients #501

Open drpshtiwan opened 2 years ago

drpshtiwan commented 2 years ago

I activated HLS in the configuration, but when anybody watches the live stream. The system can not count them and it only shows 1 client watching the Live stream. This is my configuration.

  trans: {
    ffmpeg: '/usr/bin/ffmpeg',
    tasks: [
      {
        app: 'live',
        hls: true,
        hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
        dash: true,
        dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
      }
    ]
  },

When I use the flv live it works perfectly. What is the problem?

rdemo commented 2 years ago

Was there a solution for this? Having the same issue. Cannot see the number of connections; always shows 1.