mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
rework live stream creation
This commit is contained in:
@@ -36,7 +36,7 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
/// <param name="streamId">The stream identifier.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task<MediaSourceInfo>.</returns>
|
||||
Task<LiveStream> GetChannelStream(string channelId, string streamId, CancellationToken cancellationToken);
|
||||
Task<ILiveStream> GetChannelStream(string channelId, string streamId, CancellationToken cancellationToken);
|
||||
/// <summary>
|
||||
/// Gets the channel stream media sources.
|
||||
/// </summary>
|
||||
@@ -56,4 +56,17 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
/// <returns>Task.</returns>
|
||||
Task Validate(TunerHostInfo info);
|
||||
}
|
||||
|
||||
public interface ILiveStream
|
||||
{
|
||||
Task Open(CancellationToken cancellationToken);
|
||||
Task Close();
|
||||
int ConsumerCount { get; }
|
||||
string OriginalStreamId { get; set; }
|
||||
bool EnableStreamSharing { get; set; }
|
||||
ITunerHost TunerHost { get; set; }
|
||||
MediaSourceInfo OpenedMediaSource { get; set; }
|
||||
string UniqueId { get; }
|
||||
List<string> SharedStreamIds { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user