diff options
| author | Sven Van den brande <sven.vandenbrande@outlook.com> | 2014-11-12 19:21:14 +0100 |
|---|---|---|
| committer | Sven Van den brande <sven.vandenbrande@outlook.com> | 2014-11-12 19:21:14 +0100 |
| commit | b3c0ab869409a743c736a4e9f0cb91260187c7c6 (patch) | |
| tree | 8b90ef0f259ffcb0f4c3b27bb9014e1d89a6ee9a /MediaBrowser.Api | |
| parent | cbd2c2fc5435aead30513150fc9f50c86eebde49 (diff) | |
| parent | 4f5c7687042148507d5cedfcec81ab355f478f19 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Conflicts:
MediaBrowser.WebDashboard/dashboard-ui/livetvnewrecording.html
MediaBrowser.WebDashboard/dashboard-ui/livetvseriestimer.html
MediaBrowser.WebDashboard/dashboard-ui/livetvtimer.html
Diffstat (limited to 'MediaBrowser.Api')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 15 | ||||
| -rw-r--r-- | MediaBrowser.Api/Playback/StreamRequest.cs | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index c716ee1506..21c4a3dffe 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -1402,6 +1402,13 @@ namespace MediaBrowser.Api.Playback videoRequest.Profile = val; } } + else if (i == 20) + { + if (videoRequest != null) + { + videoRequest.Cabac = string.Equals("true", val, StringComparison.OrdinalIgnoreCase); + } + } } } @@ -1867,6 +1874,14 @@ namespace MediaBrowser.Api.Playback } } + if (request.Cabac.HasValue && request.Cabac.Value) + { + if (videoStream.IsCabac.HasValue && !videoStream.IsCabac.Value) + { + return false; + } + } + return request.EnableAutoStreamCopy; } diff --git a/MediaBrowser.Api/Playback/StreamRequest.cs b/MediaBrowser.Api/Playback/StreamRequest.cs index 8f914b607a..dc22fc7548 100644 --- a/MediaBrowser.Api/Playback/StreamRequest.cs +++ b/MediaBrowser.Api/Playback/StreamRequest.cs @@ -189,6 +189,9 @@ namespace MediaBrowser.Api.Playback [ApiMember(Name = "EnableAutoStreamCopy", Description = "Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")] public bool EnableAutoStreamCopy { get; set; } + [ApiMember(Name = "Cabac", Description = "Enable if cabac encoding is required", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")] + public bool? Cabac { get; set; } + public VideoStreamRequest() { EnableAutoStreamCopy = true; |
