aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Library')
-rw-r--r--MediaBrowser.Controller/Library/ILiveStream.cs5
-rw-r--r--MediaBrowser.Controller/Library/IMediaSourceManager.cs7
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);
}
}