Interface ITunerHost
Assembly: MediaBrowser.Controller.dll
public interface ITunerHost
Properties
Declaration
bool IsSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
Property Value
Type |
Description |
System.String |
The name.
|
Declaration
Property Value
Type |
Description |
System.String |
|
Declaration
Property Value
Type |
Description |
System.String |
The type.
|
Methods
Declaration
Task<List<TunerHostInfo>> DiscoverDevices(int discoveryDurationMs, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Int32 |
discoveryDurationMs |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<TunerHostInfo>> |
|
Declaration
string GetChannelIdPrefix(TunerHostInfo tuner)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
Task<List<ChannelInfo>> GetChannels(TunerHostInfo tuner, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<ChannelInfo>> |
|
Declaration
Task<ILiveStream> GetChannelStream(TunerHostInfo tuner, BaseItem dbChannnel, string tunerChannelId, string streamId, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
BaseItem |
dbChannnel |
|
System.String |
tunerChannelId |
|
System.String |
streamId |
|
System.Collections.Generic.List<ILiveStream> |
currentLiveStreams |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ILiveStream> |
|
Declaration
Task<List<MediaSourceInfo>> GetChannelStreamMediaSources(TunerHostInfo tuner, BaseItem dbChannnel, string tunerChannelId, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
BaseItem |
dbChannnel |
|
System.String |
tunerChannelId |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
|
Declaration
TunerHostInfo GetDefaultConfiguration()
Returns
Declaration
Task<List<ProgramInfo>> GetProgramsAsync(TunerHostInfo info, ChannelInfo tunerChannel, DateTimeOffset startDateUtc, DateTimeOffset endDateUtc, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
info |
|
ChannelInfo |
tunerChannel |
|
System.DateTimeOffset |
startDateUtc |
|
System.DateTimeOffset |
endDateUtc |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<ProgramInfo>> |
|
Declaration
Task OnDeleted(TunerHostInfo tuner, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task OnSaved(TunerHostInfo tuner, bool isNew, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
System.Boolean |
isNew |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task<List<ChannelInfo>> RefreshChannels(TunerHostInfo tuner, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<ChannelInfo>> |
|
Declaration
bool SupportsGuideData(TunerHostInfo tuner)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool SupportsRemappingGuideData(TunerHostInfo tuner)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
Task ValdidateOptions(TunerHostInfo tuner, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
tuner |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Extension Methods