The Free Software Media System - Server Backend & API
update dlna profiles
Luke Pulverentic2c1451bebd3
diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.csindex b09dba70c3..82975ce22b 100644--- a/Emby.Dlna/DlnaManager.cs+++ b/Emby.Dlna/DlnaManager.cs@@ -587,7 +587,8 @@ namespace Emby.Dlnanew DirectTvProfile(),new DishHopperJoeyProfile(),new DefaultProfile(),- new PopcornHourProfile()+ new PopcornHourProfile(),+ new MarantzProfile()};foreach (var item in list)diff --git a/Emby.Dlna/Emby.Dlna.csproj b/Emby.Dlna/Emby.Dlna.csprojindex cae5a96362..365774b0d9 100644--- a/Emby.Dlna/Emby.Dlna.csproj+++ b/Emby.Dlna/Emby.Dlna.csproj@@ -86,6 +86,7 @@<Compile Include="Profiles\Foobar2000Profile.cs" /><Compile Include="Profiles\LgTvProfile.cs" /><Compile Include="Profiles\LinksysDMA2100Profile.cs" />+ <Compile Include="Profiles\MarantzProfile.cs" /><Compile Include="Profiles\MediaMonkeyProfile.cs" /><Compile Include="Profiles\PanasonicVieraProfile.cs" /><Compile Include="Profiles\PopcornHourProfile.cs" />@@ -177,6 +178,9 @@<EmbeddedResource Include="Profiles\Xml\Xbox 360.xml" /><EmbeddedResource Include="Profiles\Xml\Xbox One.xml" /></ItemGroup>+ <ItemGroup>+ <EmbeddedResource Include="Profiles\Xml\Marantz.xml" />+ </ItemGroup><Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.diff --git a/Emby.Dlna/Profiles/DenonAvrProfile.cs b/Emby.Dlna/Profiles/DenonAvrProfile.csindex eed2449891..15da48108e 100644--- a/Emby.Dlna/Profiles/DenonAvrProfile.cs+++ b/Emby.Dlna/Profiles/DenonAvrProfile.cs@@ -10,6 +10,8 @@ namespace Emby.Dlna.Profiles{Name = "Denon AVR";+ SupportedMediaTypes = "Audio";+Identification = new DeviceIdentification{FriendlyName = @"Denon:\[AVR:.*",diff --git a/Emby.Dlna/Profiles/MarantzProfile.cs b/Emby.Dlna/Profiles/MarantzProfile.csnew file mode 100644index 0000000000..f6e6f33910--- /dev/null+++ b/Emby.Dlna/Profiles/MarantzProfile.cs@@ -0,0 +1,42 @@+using System.Xml.Serialization;+using MediaBrowser.Model.Dlna;++namespace Emby.Dlna.Profiles+{+ [XmlRoot("Profile")]+ public class MarantzProfile : DefaultProfile+ {+ public MarantzProfile()+ {+ Name = "Marantz";++ SupportedMediaTypes = "Audio";++ Identification = new DeviceIdentification+ {+ Manufacturer = @"Marantz",++ Headers = new[]+ {+ new HttpHeaderInfo+ {+ Name = "User-Agent",+ Value = "Marantz",+ Match = HeaderMatchType.Substring+ }+ }+ };++ DirectPlayProfiles = new[]+ {+ new DirectPlayProfile+ {+ Container = "aac,mp3,mpa,wav,wma,mp2,ogg,oga",+ Type = DlnaProfileType.Audio+ },+ };++ ResponseProfiles = new ResponseProfile[] { };+ }+ }+}diff --git a/Emby.Dlna/Profiles/MediaMonkeyProfile.cs b/Emby.Dlna/Profiles/MediaMonkeyProfile.csindex dc1c0c2378..1ab4bcf823 100644--- a/Emby.Dlna/Profiles/MediaMonkeyProfile.cs+++ b/Emby.Dlna/Profiles/MediaMonkeyProfile.cs@@ -16,7 +16,7 @@ namespace Emby.Dlna.Profiles{FriendlyName = @"MediaMonkey",- Headers = new[]+ Headers = new[]{new HttpHeaderInfo{diff --git a/Emby.Dlna/Profiles/Xml/Denon AVR.xml b/Emby.Dlna/Profiles/Xml/Denon AVR.xmlindex c1d0a67ea5..9c7276f813 100644--- a/Emby.Dlna/Profiles/Xml/Denon AVR.xml+++ b/Emby.Dlna/Profiles/Xml/Denon AVR.xml@@ -15,7 +15,7 @@<EnableAlbumArtInDidl>false</EnableAlbumArtInDidl><EnableSingleAlbumArtLimit>false</EnableSingleAlbumArtLimit><EnableSingleSubtitleLimit>false</EnableSingleSubtitleLimit>- <SupportedMediaTypes>Audio,Photo,Video</SupportedMediaTypes>+ <SupportedMediaTypes>Audio</SupportedMediaTypes><AlbumArtPn>JPEG_SM</AlbumArtPn><MaxAlbumArtWidth>480</MaxAlbumArtWidth><MaxAlbumArtHeight>480</MaxAlbumArtHeight>diff --git a/Emby.Dlna/Profiles/Xml/Marantz.xml b/Emby.Dlna/Profiles/Xml/Marantz.xmlnew file mode 100644index 0000000000..90aed4f044--- /dev/null+++ b/Emby.Dlna/Profiles/Xml/Marantz.xml@@ -0,0 +1,62 @@+<?xml version="1.0"?>+<Profile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">+ <Name>Marantz</Name>+ <Identification>+ <Manufacturer>Marantz</Manufacturer>+ <Headers>+ <HttpHeaderInfo name="User-Agent" value="Marantz" match="Substring" />+ </Headers>+ </Identification>+ <Manufacturer>Emby</Manufacturer>+ <ManufacturerUrl>http://emby.media/</ManufacturerUrl>+ <ModelName>Emby Server</ModelName>+ <ModelDescription>Emby</ModelDescription>+ <ModelNumber>Emby</ModelNumber>+ <ModelUrl>http://emby.media/</ModelUrl>+ <EnableAlbumArtInDidl>false</EnableAlbumArtInDidl>+ <EnableSingleAlbumArtLimit>false</EnableSingleAlbumArtLimit>+ <EnableSingleSubtitleLimit>false</EnableSingleSubtitleLimit>+ <SupportedMediaTypes>Audio</SupportedMediaTypes>+ <AlbumArtPn>JPEG_SM</AlbumArtPn>+ <MaxAlbumArtWidth>480</MaxAlbumArtWidth>+ <MaxAlbumArtHeight>480</MaxAlbumArtHeight>+ <MaxIconWidth>48</MaxIconWidth>+ <MaxIconHeight>48</MaxIconHeight>+ <MaxStreamingBitrate>40000000</MaxStreamingBitrate>+ <MaxStaticBitrate>40000000</MaxStaticBitrate>+ <MusicStreamingTranscodingBitrate>192000</MusicStreamingTranscodingBitrate>+ <MaxStaticMusicBitrate xsi:nil="true" />+ <XDlnaDoc>DMS-1.50</XDlnaDoc>+ <ProtocolInfo>http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_AC3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_AC3_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_50_AC3_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMA_BASE;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMA_FULL;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG1;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_KO_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-msvideo:DLNA.ORG_PN=AVI;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-matroska:DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_MPEG1_L3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AC3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_HD_720p_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_HD_1080i_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_HP_HD_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_LPCM;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=MPEG4_P2_MP4_ASP_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=MPEG4_P2_MP4_SP_L6_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=MPEG4_P2_MP4_NDSD;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_AAC_MULT5_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_SD_AAC_MULT5_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_MPEG1_L3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_MPEG1_L3_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_SD_MPEG1_L3_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_MPEG1_L3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_MPEG1_L3_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_HD_MPEG1_L3_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_LPCM_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_BASE;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L1_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L2_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L3_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000</ProtocolInfo>+ <TimelineOffsetSeconds>0</TimelineOffsetSeconds>+ <RequiresPlainVideoItems>false</RequiresPlainVideoItems>+ <RequiresPlainFolders>false</RequiresPlainFolders>+ <EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>+ <IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>+ <XmlRootAttributes />+ <DirectPlayProfiles>+ <DirectPlayProfile container="aac,mp3,mpa,wav,wma,mp2,ogg,oga" type="Audio" />+ </DirectPlayProfiles>+ <TranscodingProfiles>+ <TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />+ <TranscodingProfile container="ts" type="Video" videoCodec="h264" audioCodec="aac" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />+ <TranscodingProfile container="jpeg" type="Photo" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" enableSubtitlesInManifest="false" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" />+ </TranscodingProfiles>+ <ContainerProfiles />+ <CodecProfiles />+ <ResponseProfiles />+ <SubtitleProfiles>+ <SubtitleProfile format="srt" method="External" />+ <SubtitleProfile format="sub" method="External" />+ <SubtitleProfile format="srt" method="Embed" />+ <SubtitleProfile format="ass" method="Embed" />+ <SubtitleProfile format="ssa" method="Embed" />+ <SubtitleProfile format="smi" method="Embed" />+ <SubtitleProfile format="dvdsub" method="Embed" />+ <SubtitleProfile format="pgs" method="Embed" />+ <SubtitleProfile format="pgssub" method="Embed" />+ <SubtitleProfile format="sub" method="Embed" />+ <SubtitleProfile format="subrip" method="Embed" />+ <SubtitleProfile format="vtt" method="Embed" />+ </SubtitleProfiles>+</Profile>\ No newline at end of file