Fix consumer count off by one when closing a browser tab with a livestream that is transcoding (#13220)

Rework Implementation
Fix review issues
Add missing nullorempty check
Fix closely related #13721
This commit is contained in:
timminator
2025-03-28 00:59:08 +01:00
committed by GitHub
parent ae4b35da46
commit 181a37a8cd
3 changed files with 87 additions and 17 deletions

View File

@@ -342,5 +342,13 @@ namespace MediaBrowser.Controller.Session
Task RevokeUserTokens(Guid userId, string currentAccessToken);
Task CloseIfNeededAsync(SessionInfo session);
/// <summary>
/// Used to close the livestream if needed.
/// </summary>
/// <param name="liveStreamId">The livestream id.</param>
/// <param name="sessionIdOrPlaySessionId">The session id or playsession id.</param>
/// <returns>Task.</returns>
Task CloseLiveStreamIfNeededAsync(string liveStreamId, string sessionIdOrPlaySessionId);
}
}