Files
ersatztv/ErsatzTV.Core/Interfaces/Streaming/IDirectStreamSessionTracker.cs
T
timothy a964286adc
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 3m35s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 4m30s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
feat(core): track direct stream sessions
refs #99
2026-07-04 08:04:11 +02:00

14 lines
472 B
C#

using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Streaming;
namespace ErsatzTV.Core.Interfaces.Streaming;
public interface IDirectStreamSessionTracker
{
IDisposable Register(string channelNumber, StreamingMode streamingMode);
bool IsActive(string channelNumber);
int GetViewerCount(string channelNumber);
IReadOnlyCollection<DirectStreamSession> GetActiveSessions();
IReadOnlyCollection<DirectStreamSession> GetActiveSessions(string channelNumber);
}