The Free Software Media System - Server Backend & API
update sony dlna profiles
Luke Pulverenti08d212c7a269
diff --git a/MediaBrowser.Dlna/DlnaManager.cs b/MediaBrowser.Dlna/DlnaManager.csindex 5f4c34bb77..aae157e7a8 100644--- a/MediaBrowser.Dlna/DlnaManager.cs+++ b/MediaBrowser.Dlna/DlnaManager.cs@@ -206,7 +206,6 @@ namespace MediaBrowser.Dlnathrow new ArgumentNullException("headers");}- //_logger.Debug("GetProfile. Headers: " + _jsonSerializer.SerializeToString(headers));// Convert to case insensitiveheaders = new Dictionary<string, string>(headers, StringComparer.OrdinalIgnoreCase);@@ -218,16 +217,12 @@ namespace MediaBrowser.Dlna}else{- string userAgent = null;- headers.TryGetValue("User-Agent", out userAgent);-- var msg = "No matching device profile via headers found. The default will be used. ";- if (!string.IsNullOrEmpty(userAgent))+ var msg = new StringBuilder();+ foreach (var header in headers){- msg += "User-agent: " + userAgent + ". ";+ msg.AppendLine(header.Key + ": " + header.Value);}-- _logger.Debug(msg);+ _logger.LogMultiline("No matching device profile found. The default will need to be used.", LogSeverity.Info, msg);}return profile;diff --git a/MediaBrowser.Dlna/PlayTo/PlayToController.cs b/MediaBrowser.Dlna/PlayTo/PlayToController.csindex 913b34016d..5622885fc7 100644--- a/MediaBrowser.Dlna/PlayTo/PlayToController.cs+++ b/MediaBrowser.Dlna/PlayTo/PlayToController.cs@@ -221,7 +221,7 @@ namespace MediaBrowser.Dlna.PlayTo{await _sessionManager.OnPlaybackStopped(new PlaybackStopInfo{- ItemId = mediaInfo.Id,+ ItemId = streamInfo.ItemId,SessionId = _session.Id,PositionTicks = positionTicks,MediaSourceId = streamInfo.MediaSourceIddiff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.csindex ad9549a2fc..b3535b0e9e 100644--- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs+++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs@@ -12,8 +12,6 @@ namespace MediaBrowser.Dlna.ProfilesIdentification = new DeviceIdentification{- FriendlyName = @"Blu-ray Disc Player",- Manufacturer = "Sony",ModelNumber = "BDP-2013"};@@ -36,9 +34,9 @@ namespace MediaBrowser.Dlna.Profilesnew TranscodingProfile{- Container = "ts",+ Container = "mkv",VideoCodec = "h264",- AudioCodec = "ac3",+ AudioCodec = "ac3,aac,mp3",Type = DlnaProfileType.Video},@@ -53,21 +51,21 @@ namespace MediaBrowser.Dlna.Profiles{new DirectPlayProfile{- Container = "ts",+ Container = "ts,mpegts",VideoCodec = "mpeg1video,mpeg2video,h264",AudioCodec = "ac3,aac,mp3,pcm",Type = DlnaProfileType.Video},new DirectPlayProfile{- Container = "mpeg",+ Container = "mpeg,mpg",VideoCodec = "mpeg1video,mpeg2video",AudioCodec = "ac3,mp3,mp2,pcm",Type = DlnaProfileType.Video},new DirectPlayProfile{- Container = "mp4",+ Container = "mp4,m4v",VideoCodec = "mpeg4,h264",AudioCodec = "ac3,aac,pcm,mp3",Type = DlnaProfileType.Video@@ -88,25 +86,24 @@ namespace MediaBrowser.Dlna.Profiles},new DirectPlayProfile{- Container = "mp3",- AudioCodec = "mp3",- Type = DlnaProfileType.Audio+ Container = "m2ts,mts",+ VideoCodec = "h264,mpeg4,vc1",+ AudioCodec = "aac,mp3,ac3,dca,dts",+ Type = DlnaProfileType.Video},new DirectPlayProfile{- Container = "mp4",- AudioCodec = "aac",- Type = DlnaProfileType.Audio+ Container = "wmv,asf",+ Type = DlnaProfileType.Video},new DirectPlayProfile{- Container = "asf",- AudioCodec = "wmav2,wmapro,wmavoice",+ Container = "mp3,m4a,wma,wav",Type = DlnaProfileType.Audio},new DirectPlayProfile{- Container = "jpeg",+ Container = "jpeg,png,gif",Type = DlnaProfileType.Photo}};diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.csindex 93e3a20d04..45fa1d0e67 100644--- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs+++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs@@ -12,8 +12,6 @@ namespace MediaBrowser.Dlna.ProfilesIdentification = new DeviceIdentification{- FriendlyName = @"Blu-ray Disc Player",- Manufacturer = "Sony",ModelNumber = "BDP-2014"};@@ -36,9 +34,9 @@ namespace MediaBrowser.Dlna.Profilesnew TranscodingProfile{- Container = "ts",+ Container = "mkv",VideoCodec = "h264",- AudioCodec = "ac3",+ AudioCodec = "ac3,aac,mp3",Type = DlnaProfileType.Video},diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.csindex f469bde02f..6295cd40f9 100644--- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs+++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs@@ -12,8 +12,6 @@ namespace MediaBrowser.Dlna.ProfilesIdentification = new DeviceIdentification{- FriendlyName = @"Blu-ray Disc Player",- Manufacturer = "Sony",ModelNumber = "BDP-2015"};@@ -36,9 +34,9 @@ namespace MediaBrowser.Dlna.Profilesnew TranscodingProfile{- Container = "ts",+ Container = "mkv",VideoCodec = "h264",- AudioCodec = "ac3",+ AudioCodec = "ac3,aac,mp3",Type = DlnaProfileType.Video},diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.csindex 662e2418f7..5f1f1cf5f4 100644--- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs+++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs@@ -12,9 +12,17 @@ namespace MediaBrowser.Dlna.ProfilesIdentification = new DeviceIdentification{- FriendlyName = @"Blu-ray Disc Player",- Manufacturer = "Sony",- ModelNumber = "BDP-2016"+ ModelNumber = "BDP-2016",++ Headers = new[]+ {+ new HttpHeaderInfo+ {+ Name = "X-AV-Physical-Unit-Info",+ Value = "BDP-S3700",+ Match = HeaderMatchType.Substring+ }+ }};AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av");@@ -36,9 +44,9 @@ namespace MediaBrowser.Dlna.Profilesnew TranscodingProfile{- Container = "ts",+ Container = "mkv",VideoCodec = "h264",- AudioCodec = "ac3",+ AudioCodec = "ac3,aac,mp3",Type = DlnaProfileType.Video},diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xmlindex 4f2db34e58..32a79ec558 100644--- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml+++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml@@ -2,9 +2,7 @@<Profile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Name>Sony Blu-ray Player 2013</Name><Identification>- <FriendlyName>Blu-ray Disc Player</FriendlyName><ModelNumber>BDP-2013</ModelNumber>- <Manufacturer>Sony</Manufacturer><Headers /></Identification><Manufacturer>Microsoft Corporation</Manufacturer>@@ -37,19 +35,19 @@<XmlAttribute name="xmlns:av" value="urn:schemas-sony-com:av" /></XmlRootAttributes><DirectPlayProfiles>- <DirectPlayProfile container="ts" audioCodec="ac3,aac,mp3,pcm" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />- <DirectPlayProfile container="mpeg" audioCodec="ac3,mp3,mp2,pcm" videoCodec="mpeg1video,mpeg2video" type="Video" />- <DirectPlayProfile container="mp4" audioCodec="ac3,aac,pcm,mp3" videoCodec="mpeg4,h264" type="Video" />+ <DirectPlayProfile container="ts,mpegts" audioCodec="ac3,aac,mp3,pcm" videoCodec="mpeg1video,mpeg2video,h264" type="Video" />+ <DirectPlayProfile container="mpeg,mpg" audioCodec="ac3,mp3,mp2,pcm" videoCodec="mpeg1video,mpeg2video" type="Video" />+ <DirectPlayProfile container="mp4,m4v" audioCodec="ac3,aac,pcm,mp3" videoCodec="mpeg4,h264" type="Video" /><DirectPlayProfile container="avi" audioCodec="ac3,aac,mp3,pcm" videoCodec="mpeg4,h264" type="Video" /><DirectPlayProfile container="mkv" audioCodec="ac3,dca,aac,mp3,pcm" videoCodec="mpeg4,h264" type="Video" />- <DirectPlayProfile container="mp3" audioCodec="mp3" type="Audio" />- <DirectPlayProfile container="mp4" audioCodec="aac" type="Audio" />- <DirectPlayProfile container="asf" audioCodec="wmav2,wmapro,wmavoice" type="Audio" />- <DirectPlayProfile container="jpeg" type="Photo" />+ <DirectPlayProfile container="m2ts,mts" audioCodec="aac,mp3,ac3,dca,dts" videoCodec="h264,mpeg4,vc1" type="Video" />+ <DirectPlayProfile container="wmv,asf" type="Video" />+ <DirectPlayProfile container="mp3,m4a,wma,wav" type="Audio" />+ <DirectPlayProfile container="jpeg,png,gif" type="Photo" /></DirectPlayProfiles><TranscodingProfiles><TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />- <TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="ac3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />+ <TranscodingProfile container="mkv" type="Video" videoCodec="h264" audioCodec="ac3,aac,mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /><TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /></TranscodingProfiles><ContainerProfiles>diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xmlindex 468a6dd13a..fa9914953e 100644--- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml+++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml@@ -2,9 +2,7 @@<Profile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Name>Sony Blu-ray Player 2014</Name><Identification>- <FriendlyName>Blu-ray Disc Player</FriendlyName><ModelNumber>BDP-2014</ModelNumber>- <Manufacturer>Sony</Manufacturer><Headers /></Identification><Manufacturer>Microsoft Corporation</Manufacturer>@@ -49,7 +47,7 @@</DirectPlayProfiles><TranscodingProfiles><TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />- <TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="ac3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />+ <TranscodingProfile container="mkv" type="Video" videoCodec="h264" audioCodec="ac3,aac,mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /><TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /></TranscodingProfiles><ContainerProfiles>diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xmlindex ac356765e8..5d0904f451 100644--- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml+++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml@@ -2,9 +2,7 @@<Profile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Name>Sony Blu-ray Player 2015</Name><Identification>- <FriendlyName>Blu-ray Disc Player</FriendlyName><ModelNumber>BDP-2015</ModelNumber>- <Manufacturer>Sony</Manufacturer><Headers /></Identification><Manufacturer>Microsoft Corporation</Manufacturer>@@ -49,7 +47,7 @@</DirectPlayProfiles><TranscodingProfiles><TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />- <TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="ac3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />+ <TranscodingProfile container="mkv" type="Video" videoCodec="h264" audioCodec="ac3,aac,mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /><TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /></TranscodingProfiles><ContainerProfiles>diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xmlindex 0b7ca9922e..910efbd11e 100644--- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml+++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml@@ -2,10 +2,10 @@<Profile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Name>Sony Blu-ray Player 2016</Name><Identification>- <FriendlyName>Blu-ray Disc Player</FriendlyName><ModelNumber>BDP-2016</ModelNumber>- <Manufacturer>Sony</Manufacturer>- <Headers />+ <Headers>+ <HttpHeaderInfo name="X-AV-Physical-Unit-Info" value="BDP-S3700" match="Substring" />+ </Headers></Identification><Manufacturer>Microsoft Corporation</Manufacturer><ManufacturerUrl>http://emby.media/</ManufacturerUrl>@@ -49,7 +49,7 @@</DirectPlayProfiles><TranscodingProfiles><TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />- <TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="ac3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" />+ <TranscodingProfile container="mkv" type="Video" videoCodec="h264" audioCodec="ac3,aac,mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /><TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" /></TranscodingProfiles><ContainerProfiles>