diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-03 23:36:05 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-03 23:36:05 -0400 |
| commit | 161e1af0eaa69e828f64d33311e3bc462852d6c4 (patch) | |
| tree | d721263a612dcc236da8bf84e05254f619082166 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 2a77500c6190c00e3783e42ee13042a3476d1ad1 (diff) | |
remove seek headers when not transcoding
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 8b05625cb..a9aaab00c 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -827,7 +827,7 @@ namespace MediaBrowser.Api.Playback } if (string.Equals(codec, "wmv", StringComparison.OrdinalIgnoreCase)) { - return "msmpeg4"; + return "wmv2"; } if (string.Equals(codec, "theora", StringComparison.OrdinalIgnoreCase)) { @@ -1623,7 +1623,7 @@ namespace MediaBrowser.Api.Playback } var profile = string.IsNullOrWhiteSpace(state.Request.DeviceProfileId) ? - null : + DlnaManager.GetProfile(headers) : DlnaManager.GetProfile(state.Request.DeviceProfileId); if (profile == null) @@ -1708,7 +1708,10 @@ namespace MediaBrowser.Api.Playback // Byte-based seeking only possible when not transcoding orgOp += isStaticallyStreamed || state.TranscodeSeekInfo == TranscodeSeekInfo.Bytes ? "1" : "0"; - AddTimeSeekResponseHeaders(state, responseHeaders); + if (!isStaticallyStreamed) + { + AddTimeSeekResponseHeaders(state, responseHeaders); + } } else { |
