diff options
| author | Laurence Laforest <l.laforest@gmail.com> | 2026-10-07 12:25:43 -0400 |
|---|---|---|
| committer | Laurence Laforest <l.laforest@gmail.com> | 2026-10-13 18:10:03 -0400 |
| commit | 23ca550053adc564e2c082eeb2f7a36439d6e814 (patch) | |
| tree | c826aa18b0f15b77775d4b16d8c727783ab66437 /MediaBrowser.Controller/Library | |
| parent | e53a6d3e6ae29cb05c55c7b8edf2d237a1f75c16 (diff) | |
Add active stream count to live tv channels
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILiveStream.cs | 5 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Library/IMediaSourceManager.cs | 7 |
2 files changed, 12 insertions, 0 deletions
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; } + /// <summary> + /// Gets or sets the channel id for live tv streams. + /// </summary> + 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); + + /// <summary> + /// Gets the open streams for the provided channel. + /// </summary> + /// <param name="channelId">The channel id.</param> + /// <returns>The open streams held for the channel.</returns> + IReadOnlyList<ILiveStream> GetLiveStreams(Guid channelId); } } |
