ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.16k stars 5.31k forks source link

How to track the number of viewers of different streams using NGINX for HLS #3697

Closed JornUzon closed 4 months ago

JornUzon commented 1 year ago

According to the documentation, I set up NGINX for HLS and configured NGINX's caching strategy. However, after testing, I noticed that the total number of viewers shown on the SRS source server is not accurate; it is significantly lower than the actual number. While it is possible to track the connection count in NGINX, it is unable to differentiate between different streams. So, how can I accurately track the number of real viewers for each stream?

TRANS_BY_GPT3