From 8ae316a2f3333106921e7bc587bc990a8899c613 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 30 Jun 2014 13:40:46 -0400 Subject: fixes #859 - Support adaptive bitrate streaming --- .../Channels/ChannelConfigurations.cs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs (limited to 'MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs') diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs b/MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs new file mode 100644 index 0000000000..9dfb0404e0 --- /dev/null +++ b/MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs @@ -0,0 +1,29 @@ +using MediaBrowser.Common.Configuration; +using MediaBrowser.Model.Configuration; +using System.Collections.Generic; + +namespace MediaBrowser.Server.Implementations.Channels +{ + public static class ChannelConfigurationExtension + { + public static ChannelOptions GetChannelsConfiguration(this IConfigurationManager manager) + { + return manager.GetConfiguration("channels"); + } + } + + public class ChannelConfigurationFactory : IConfigurationFactory + { + public IEnumerable GetConfigurations() + { + return new List + { + new ConfigurationStore + { + Key = "channels", + ConfigurationType = typeof (ChannelOptions) + } + }; + } + } +} -- cgit v1.2.3