mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge pull request #307 from drmrbg/fix-chromecast
Fix transcoding of AAC from 5.1 to stereo to support Chromecast
This commit is contained in:
commit
b27315bc08
1 changed files with 18 additions and 0 deletions
|
@ -589,6 +589,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>
|
/// <summary>
|
||||||
/// Parses the dlna headers.
|
/// Parses the dlna headers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -667,6 +683,8 @@ namespace MediaBrowser.Api.Playback
|
||||||
ParseParams(request);
|
ParseParams(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ParseStreamOptions(request);
|
||||||
|
|
||||||
var url = Request.PathInfo;
|
var url = Request.PathInfo;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(request.AudioCodec))
|
if (string.IsNullOrEmpty(request.AudioCodec))
|
||||||
|
|
Loading…
Reference in a new issue