Right now it works by calling metrics.StreamsRunning at the start of binary stream request, which is not suitable for HLS as each HLS stream is guaranteed to incur a multitude of requests.
One way to do it could be maintaining a list of clients that request HLS fragments, based on stream URL, and drop them off after a certain timeout.
Right now it works by calling
metrics.StreamsRunning
at the start of binary stream request, which is not suitable for HLS as each HLS stream is guaranteed to incur a multitude of requests.One way to do it could be maintaining a list of clients that request HLS fragments, based on stream URL, and drop them off after a certain timeout.