Handle only source stream

This commit is contained in:
2023-07-11 20:54:52 +01:00
parent 12989857a1
commit a36c6c434c
2 changed files with 20 additions and 12 deletions

View File

@ -56,9 +56,8 @@ public class StreamManager
await PublishEvent(user, ev);
}
public async Task ConsumeQuota(string streamKey, double duration, string clientId, string app)
public async Task ConsumeQuota(string streamKey, double duration, string clientId)
{
if (!app.EndsWith("/source")) return;
var user = await GetUserFromStreamKey(streamKey);
if (user == default) throw new Exception("No stream key found");