mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge pull request #1568 from whooo/master
Add DLNA headers if requested by the client
This commit is contained in:
commit
29623d36e8
1 changed files with 2 additions and 7 deletions
|
@ -690,8 +690,8 @@ namespace MediaBrowser.Api.Playback
|
|||
request.AudioCodec = EncodingHelper.InferAudioCodec(url);
|
||||
}
|
||||
|
||||
var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) /*||
|
||||
string.Equals(Request.Headers.Get("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase)*/;
|
||||
var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) ||
|
||||
string.Equals(GetHeader("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
var state = new StreamState(MediaSourceManager, TranscodingJobType)
|
||||
{
|
||||
|
@ -1016,11 +1016,6 @@ namespace MediaBrowser.Api.Playback
|
|||
|
||||
).FirstOrDefault() ?? string.Empty;
|
||||
}
|
||||
|
||||
foreach (var item in responseHeaders)
|
||||
{
|
||||
Request.Response.Headers.Add(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
private void AddTimeSeekResponseHeaders(StreamState state, IDictionary<string, string> responseHeaders)
|
||||
|
|
Loading…
Reference in a new issue