aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-30 13:40:46 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-30 13:40:46 -0400
commit8ae316a2f3333106921e7bc587bc990a8899c613 (patch)
treebe4e6947b504ffdcc64bcafd63a476b125f05e36 /MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs
parentf526a07edd13866644dbbee05a6caec85c3e10e1 (diff)
fixes #859 - Support adaptive bitrate streaming
Diffstat (limited to 'MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs b/MediaBrowser.Server.Implementations/Channels/ChannelConfigurations.cs
new file mode 100644
index 000000000..9dfb0404e
--- /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<ChannelOptions>("channels");
+ }
+ }
+
+ public class ChannelConfigurationFactory : IConfigurationFactory
+ {
+ public IEnumerable<ConfigurationStore> GetConfigurations()
+ {
+ return new List<ConfigurationStore>
+ {
+ new ConfigurationStore
+ {
+ Key = "channels",
+ ConfigurationType = typeof (ChannelOptions)
+ }
+ };
+ }
+ }
+}