diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-29 13:53:56 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-29 13:53:56 -0500 |
| commit | 8c34f863fb6c6c282a87837138b3d620170099d8 (patch) | |
| tree | a3a44a3db87717e3c2eb37ea3528cf0227040dd2 /MediaBrowser.Server.Implementations | |
| parent | 04d1a53d199bbf5fced102daae77b3ef0d64474d (diff) | |
make live tv channels playable
Diffstat (limited to 'MediaBrowser.Server.Implementations')
| -rw-r--r-- | MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs index 2ef68c2392..a3790b097a 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs @@ -166,6 +166,15 @@ namespace MediaBrowser.Server.Implementations.LiveTv return await service.GetRecordingStream(recording.Id, cancellationToken).ConfigureAwait(false); } + public async Task<StreamResponseInfo> GetChannelStream(string id, CancellationToken cancellationToken) + { + var service = ActiveService; + + var channel = GetInternalChannel(id); + + return await service.GetRecordingStream(channel.ChannelInfo.Id, cancellationToken).ConfigureAwait(false); + } + private async Task<LiveTvChannel> GetChannel(ChannelInfo channelInfo, string serviceName, CancellationToken cancellationToken) { var path = Path.Combine(_appPaths.ItemsByNamePath, "channels", _fileSystem.GetValidFilename(serviceName), _fileSystem.GetValidFilename(channelInfo.Name)); |
