Interface ILiveTvManager
Manages all live tv services installed on the server
Assembly: MediaBrowser.Controller.dll
public interface ILiveTvManager
Properties
Declaration
bool HasActiveRecording { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
IListingsProvider[] ListingProviders { get; }
Property Value
Methods
Declaration
void AddChannelInfo(BaseItemDto[] dtos, long[] channelIds, DtoOptions options, User user)
Parameters
Adds the information to program dto.
Declaration
void AddInfoToProgramDto(List<Tuple<BaseItem, BaseItemDto>> programs, DtoOptions options, User user = null)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Tuple<BaseItem, BaseItemDto>> |
programs |
The programs.
|
DtoOptions |
options |
The options.
|
User |
user |
The user.
|
Declaration
void AddInfoToRecordingDto(BaseItem item, BaseItemDto dto, ActiveRecordingInfo activeRecordingInfo, User user = null)
Parameters
Declaration
void AddParts(IEnumerable<ITunerHost> tunerHosts, IEnumerable<IListingsProvider> listingProviders)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<ITunerHost> |
tunerHosts |
|
System.Collections.Generic.IEnumerable<IListingsProvider> |
listingProviders |
|
Cancels the series timer.
Declaration
void CancelSeriesTimer(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
The identifier.
|
Declaration
void CancelTimer(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
The identifier.
|
Declaration
ILiveStream CreateLiveStream(LiveStreamOptions options)
Parameters
Returns
Creates the series timer.
Declaration
Task<SeriesTimerInfo> CreateSeriesTimer(SeriesTimerInfo timer, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
SeriesTimerInfo |
timer |
The timer.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Declaration
void CreateTimer(TimerInfoDto timer)
Parameters
Declaration
void DeleteListingsProvider(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Declaration
Task DeleteTunerHost(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task<List<TunerHostInfo>> DiscoverTuners(bool newDevicesOnly, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Boolean |
newDevicesOnly |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<TunerHostInfo>> |
|
Declaration
ActiveRecordingInfo GetActiveRecordingInfo(BaseItem item)
Parameters
Returns
Declaration
ActiveRecordingInfo GetActiveRecordingInfo(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Gets the channel media sources.
Declaration
Task<List<MediaSourceInfo>> GetChannelMediaSources(BaseItem item, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
|
Declaration
Task<List<ChannelInfo>> GetChannelsFromListingsProviderData(string id, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
id |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<ChannelInfo>> |
|
Gets the guide information.
Declaration
Returns
Gets the internal channels.
Declaration
QueryResult<BaseItem> GetInternalChannels(InternalItemsQuery internalQuery, bool enableFavoriteSorting, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
InternalItemsQuery |
internalQuery |
|
System.Boolean |
enableFavoriteSorting |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Folder GetInternalLiveTvFolder(bool createIfNotFound)
Parameters
Type |
Name |
Description |
System.Boolean |
createIfNotFound |
|
Returns
Declaration
long GetInternalLiveTvFolderId(bool createIfNotFound)
Parameters
Type |
Name |
Description |
System.Boolean |
createIfNotFound |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
Task<List<NameIdPair>> GetLineups(string providerType, string providerId, string country, string location, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
providerType |
Type of the provider.
|
System.String |
providerId |
The provider identifier.
|
System.String |
country |
The country.
|
System.String |
location |
The location.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<NameIdPair>> |
Task<List<NameIdPair>>.
|
Gets the live tv information.
Declaration
LiveTvInfo GetLiveTvInfo(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Gets the new timer defaults asynchronous.
Declaration
SeriesTimerInfoDto GetNewTimerDefaults()
Returns
Gets the new timer defaults.
Declaration
SeriesTimerInfoDto GetNewTimerDefaults(string programId)
Parameters
Type |
Name |
Description |
System.String |
programId |
|
Returns
Declaration
QueryResult<BaseItemDto> GetPrograms(InternalItemsQuery query)
Parameters
Returns
Gets the recommended programs.
Declaration
QueryResult<BaseItemDto> GetRecommendedPrograms(InternalItemsQuery query)
Parameters
Returns
Declaration
QueryResult<BaseItemDto> GetRecordings(InternalItemsQuery query)
Parameters
Returns
Declaration
SeriesTimerInfoDto GetSeriesTimer(ReadOnlyMemory<char> id)
Parameters
Type |
Name |
Description |
System.ReadOnlyMemory<System.Char> |
id |
|
Returns
Declaration
SeriesTimerInfoDto GetSeriesTimerInfoDto(SeriesTimerInfo seriesTimer)
Parameters
Returns
Declaration
QueryResult<SeriesTimerInfoDto> GetSeriesTimers(SeriesTimerQuery query)
Parameters
Returns
Declaration
TimerInfoDto GetTimer(ReadOnlyMemory<char> id)
Parameters
Type |
Name |
Description |
System.ReadOnlyMemory<System.Char> |
id |
|
Returns
Declaration
TimerInfoDto GetTimerInfoDto(TimerInfo timer, LiveTvProgram program)
Parameters
Returns
Declaration
QueryResult<TimerInfoDto> GetTimers(TimerQuery query)
Parameters
Returns
Declaration
TunerHostInfo GetTunerHostInfo(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Declaration
List<TunerHostInfo> GetTunerHostInfos(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
|
Returns
Declaration
bool HasActiveRecordingInDirectory(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
bool IsLiveTvEnabled(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Type |
Description |
System.Boolean |
|
Saves the listing provider.
Declaration
Task<ListingsProviderInfo> SaveListingProvider(ListingsProviderInfo info, bool validateLogin, bool validateListings, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
ListingsProviderInfo |
info |
The information.
|
System.Boolean |
validateLogin |
if set to true [validate login].
|
System.Boolean |
validateListings |
if set to true [validate listings].
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<TunerHostInfo> SaveTunerHost(TunerHostInfo info, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TunerHostInfo |
info |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<TunerChannelMapping> SetChannelMapping(string providerId, string tunerChannelNumber, string providerChannelNumber, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
providerId |
|
System.String |
tunerChannelNumber |
|
System.String |
providerChannelNumber |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task UpdateSeriesTimer(SeriesTimerInfo timer)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
void UpdateTimer(TimerInfoDto timer)
Parameters
Events
Declaration
event EventHandler<GenericEventArgs<ActiveRecordingInfo>> RecordingEnded
Event Type
Declaration
event EventHandler<GenericEventArgs<ActiveRecordingInfo>> RecordingStarted
Event Type
Declaration
event EventHandler<GenericEventArgs<SeriesTimerEventInfo>> SeriesTimerCancelled
Event Type
Declaration
event EventHandler<GenericEventArgs<SeriesTimerEventInfo>> SeriesTimerCreated
Event Type
Declaration
event EventHandler<GenericEventArgs<SeriesTimerEventInfo>> SeriesTimerUpdated
Event Type
Declaration
event EventHandler<GenericEventArgs<TimerEventInfo>> TimerCancelled
Event Type
Declaration
event EventHandler<GenericEventArgs<TimerEventInfo>> TimerCreated
Event Type
Declaration
event EventHandler<GenericEventArgs<TimerEventInfo>> TimerUpdated
Event Type
Extension Methods