From 23ca550053adc564e2c082eeb2f7a36439d6e814 Mon Sep 17 00:00:00 2001 From: Laurence Laforest Date: Wed, 7 Oct 2026 12:25:43 -0400 Subject: Add active stream count to live tv channels --- MediaBrowser.Controller/Library/ILiveStream.cs | 5 +++++ MediaBrowser.Controller/Library/IMediaSourceManager.cs | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/ILiveStream.cs b/MediaBrowser.Controller/Library/ILiveStream.cs index bf64aca0f0..9e0199cb08 100644 --- a/MediaBrowser.Controller/Library/ILiveStream.cs +++ b/MediaBrowser.Controller/Library/ILiveStream.cs @@ -24,6 +24,11 @@ namespace MediaBrowser.Controller.Library string UniqueId { get; } + /// + /// Gets or sets the channel id for live tv streams. + /// + Guid ChannelId { get; set; } + Task Open(CancellationToken openCancellationToken); Task Close(); diff --git a/MediaBrowser.Controller/Library/IMediaSourceManager.cs b/MediaBrowser.Controller/Library/IMediaSourceManager.cs index 2b6781a197..8efd67193a 100644 --- a/MediaBrowser.Controller/Library/IMediaSourceManager.cs +++ b/MediaBrowser.Controller/Library/IMediaSourceManager.cs @@ -141,5 +141,12 @@ namespace MediaBrowser.Controller.Library void SetDefaultAudioAndSubtitleStreamIndices(BaseItem item, MediaSourceInfo source, User user); Task AddMediaInfoWithProbe(MediaSourceInfo mediaSource, bool isAudio, string cacheKey, bool addProbeDelay, bool isLiveStream, CancellationToken cancellationToken); + + /// + /// Gets the open streams for the provided channel. + /// + /// The channel id. + /// The open streams held for the channel. + IReadOnlyList GetLiveStreams(Guid channelId); } } -- cgit v1.2.3