OdyseeTeam / player-server

Media server for Odysee
28 stars 12 forks source link

Improve running streams metrics #71

Open anbsky opened 3 years ago

anbsky commented 3 years ago

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.