Disable view counters

This commit is contained in:
2023-07-12 10:56:11 +01:00
parent d0f200bae9
commit 532e3521bc

View File

@ -26,7 +26,7 @@ public class BackgroundStreamManager : BackgroundService
var streams = clients.Where(a => !a.Publish).GroupBy(a => a.Url);
foreach (var stream in streams)
{
var viewers = stream.Select(a => a.Ip).Distinct().Count();
var viewers = 0; //stream.Select(a => a.Ip).Distinct().Count();
var streamKey = stream.Key.Split("/").Last();
await streamManager.UpdateViewers(streamKey, viewers);
}