diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-08-27 14:11:06 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-08-27 14:11:06 -0400 |
| commit | 08d212c7a2696d7be24ea14a02145201aebfccd4 (patch) | |
| tree | 5116ed21afc10ef25d3acc57fdd5bb3ee37c5926 | |
| parent | d68e9841207e6681b9b78c560ccee889fb1173fa (diff) | |
update sony dlna profiles
10 files changed, 49 insertions, 59 deletions
diff --git a/MediaBrowser.Dlna/DlnaManager.cs b/MediaBrowser.Dlna/DlnaManager.cs index 5f4c34bb7..aae157e7a 100644 --- a/MediaBrowser.Dlna/DlnaManager.cs +++ b/MediaBrowser.Dlna/DlnaManager.cs @@ -206,7 +206,6 @@ namespace MediaBrowser.Dlna throw new ArgumentNullException("headers"); } - //_logger.Debug("GetProfile. Headers: " + _jsonSerializer.SerializeToString(headers)); // Convert to case insensitive headers = 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.cs index 913b34016..5622885fc 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.MediaSourceId diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs index ad9549a2f..b3535b0e9 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs @@ -12,8 +12,6 @@ namespace MediaBrowser.Dlna.Profiles Identification = new DeviceIdentification { - FriendlyName = @"Blu-ray Disc Player", - Manufacturer = "Sony", ModelNumber = "BDP-2013" }; @@ -36,9 +34,9 @@ namespace MediaBrowser.Dlna.Profiles new 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.cs index 93e3a20d0..45fa1d0e6 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs @@ -12,8 +12,6 @@ namespace MediaBrowser.Dlna.Profiles Identification = new DeviceIdentification { - FriendlyName = @"Blu-ray Disc Player", - Manufacturer = "Sony", ModelNumber = "BDP-2014" }; @@ -36,9 +34,9 @@ namespace MediaBrowser.Dlna.Profiles new 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.cs index f469bde02..6295cd40f 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs @@ -12,8 +12,6 @@ namespace MediaBrowser.Dlna.Profiles Identification = new DeviceIdentification { - FriendlyName = @"Blu-ray Disc Player", - Manufacturer = "Sony", ModelNumber = "BDP-2015" }; @@ -36,9 +34,9 @@ namespace MediaBrowser.Dlna.Profiles new 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.cs index 662e2418f..5f1f1cf5f 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs @@ -12,9 +12,17 @@ namespace MediaBrowser.Dlna.Profiles Identification = 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.Profiles new 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.xml index 4f2db34e5..32a79ec55 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.xml index 468a6dd13..fa9914953 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.xml index ac356765e..5d0904f45 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.xml index 0b7ca9922..910efbd11 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> |
