diff options
| author | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
|---|---|---|
| committer | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
| commit | 48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch) | |
| tree | 8dae77a31670a888d733484cb17dd4077d5444e8 /MediaBrowser.Controller/LiveTv/ITunerHost.cs | |
| parent | c32d8656382a0eacb301692e0084377fc433ae9b (diff) | |
Update to 3.5.2 and .net core 2.1
Diffstat (limited to 'MediaBrowser.Controller/LiveTv/ITunerHost.cs')
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/ITunerHost.cs | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/MediaBrowser.Controller/LiveTv/ITunerHost.cs b/MediaBrowser.Controller/LiveTv/ITunerHost.cs deleted file mode 100644 index 80c40f8bd..000000000 --- a/MediaBrowser.Controller/LiveTv/ITunerHost.cs +++ /dev/null @@ -1,76 +0,0 @@ -using MediaBrowser.Model.Dto; -using MediaBrowser.Model.LiveTv; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace MediaBrowser.Controller.LiveTv -{ - public interface ITunerHost - { - /// <summary> - /// Gets the name. - /// </summary> - /// <value>The name.</value> - string Name { get; } - /// <summary> - /// Gets the type. - /// </summary> - /// <value>The type.</value> - string Type { get; } - /// <summary> - /// Gets the channels. - /// </summary> - /// <returns>Task<IEnumerable<ChannelInfo>>.</returns> - Task<List<ChannelInfo>> GetChannels(bool enableCache, CancellationToken cancellationToken); - /// <summary> - /// Gets the tuner infos. - /// </summary> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task<List<LiveTvTunerInfo>>.</returns> - Task<List<LiveTvTunerInfo>> GetTunerInfos(CancellationToken cancellationToken); - /// <summary> - /// Gets the channel stream. - /// </summary> - /// <param name="channelId">The channel identifier.</param> - /// <param name="streamId">The stream identifier.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task<MediaSourceInfo>.</returns> - Task<ILiveStream> GetChannelStream(string channelId, string streamId, CancellationToken cancellationToken); - /// <summary> - /// Gets the channel stream media sources. - /// </summary> - /// <param name="channelId">The channel identifier.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task<List<MediaSourceInfo>>.</returns> - Task<List<MediaSourceInfo>> GetChannelStreamMediaSources(string channelId, CancellationToken cancellationToken); - - Task<List<TunerHostInfo>> DiscoverDevices(int discoveryDurationMs, CancellationToken cancellationToken); - bool IsSupported - { - get; - } - } - public interface IConfigurableTunerHost - { - /// <summary> - /// Validates the specified information. - /// </summary> - /// <param name="info">The information.</param> - /// <returns>Task.</returns> - Task Validate(TunerHostInfo info); - } - - public interface ILiveStream - { - Task Open(CancellationToken openCancellationToken); - void Close(); - int ConsumerCount { get; } - string OriginalStreamId { get; set; } - string TunerHostId { get; } - bool EnableStreamSharing { get; set; } - MediaSourceInfo OpenedMediaSource { get; set; } - string UniqueId { get; } - List<string> SharedStreamIds { get; } - } -} |
