aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-15 17:19:45 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-15 17:19:45 -0500
commit7d81888038a007eb84c6240acb80bf7ca611eb5c (patch)
treecc71a10f242fe983604e5f1c71d14b625844ea9e /MediaBrowser.Api/Playback/BaseStreamingService.cs
parentd0a5197c0aa9d44413366258b0ff81512ba2cba4 (diff)
add tv guide hover menus
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 98004dfcb..510808778 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -318,7 +318,17 @@ namespace MediaBrowser.Api.Playback
if (videoCodec.Equals("libx264", StringComparison.OrdinalIgnoreCase))
{
- return "-preset superfast";
+ switch (GetQualitySetting())
+ {
+ case EncodingQuality.HighSpeed:
+ return "-preset ultrafast";
+ case EncodingQuality.HighQuality:
+ return "-preset superfast";
+ case EncodingQuality.MaxQuality:
+ return "-preset superfast";
+ default:
+ throw new Exception("Unrecognized MediaEncodingQuality value.");
+ }
}
if (videoCodec.Equals("mpeg4", StringComparison.OrdinalIgnoreCase))