diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2019-01-06 14:11:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-06 14:11:09 +0300 |
| commit | b27315bc08d4d224cf090efc24385c7102741089 (patch) | |
| tree | 0a073c9cae79bd95a885e916aa9bd83d27ad4079 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | e5a97f1df2823a4cbf7bbc7259f2b3aa29bc335f (diff) | |
| parent | 6ffde49760e30c4f0c06d3973442d2977fb276f1 (diff) | |
Merge pull request #307 from drmrbg/fix-chromecast
Fix transcoding of AAC from 5.1 to stereo to support Chromecast
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 28e75bf55..fa6502bda 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -590,6 +590,22 @@ namespace MediaBrowser.Api.Playback } /// <summary> + /// Parses query parameters as StreamOptions + /// <summary> + /// <param name="request">The stream request.</param> + private void ParseStreamOptions(StreamRequest request) + { + foreach (var param in Request.QueryString) { + if (Char.IsLower(param.Name[0])) { + // This was probably not parsed initially and should be a StreamOptions + // TODO: This should be incorporated either in the lower framework for parsing requests + // or the generated URL should correctly serialize it + request.StreamOptions[param.Name] = param.Value; + } + } + } + + /// <summary> /// Parses the dlna headers. /// </summary> /// <param name="request">The request.</param> @@ -667,6 +683,8 @@ namespace MediaBrowser.Api.Playback ParseParams(request); } + ParseStreamOptions(request); + var url = Request.PathInfo; if (string.IsNullOrEmpty(request.AudioCodec)) |
