SonyBlurayPlayer2014.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. using MediaBrowser.Model.Dlna;
  2. namespace Emby.Dlna.Profiles
  3. {
  4. [System.Xml.Serialization.XmlRoot("Profile")]
  5. public class SonyBlurayPlayer2014 : DefaultProfile
  6. {
  7. public SonyBlurayPlayer2014()
  8. {
  9. Name = "Sony Blu-ray Player 2014";
  10. Identification = new DeviceIdentification
  11. {
  12. ModelNumber = "BDP-2014",
  13. Headers = new[]
  14. {
  15. new HttpHeaderInfo
  16. {
  17. Name = "X-AV-Physical-Unit-Info",
  18. Value = "BDP-S1200",
  19. Match = HeaderMatchType.Substring
  20. },
  21. new HttpHeaderInfo
  22. {
  23. Name = "X-AV-Physical-Unit-Info",
  24. Value = "BDP-S3200",
  25. Match = HeaderMatchType.Substring
  26. },
  27. new HttpHeaderInfo
  28. {
  29. Name = "X-AV-Physical-Unit-Info",
  30. Value = "BDP-S5200",
  31. Match = HeaderMatchType.Substring
  32. },
  33. new HttpHeaderInfo
  34. {
  35. Name = "X-AV-Physical-Unit-Info",
  36. Value = "BDP-S6200",
  37. Match = HeaderMatchType.Substring
  38. },
  39. new HttpHeaderInfo
  40. {
  41. Name = "X-AV-Physical-Unit-Info",
  42. Value = "BDP-S7200",
  43. Match = HeaderMatchType.Substring
  44. }
  45. }
  46. };
  47. AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av");
  48. ModelName = "Windows Media Player Sharing";
  49. ModelNumber = "3.0";
  50. Manufacturer = "Microsoft Corporation";
  51. ProtocolInfo = "http-get:*:video/divx:DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAFULL;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO_320;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/vnd.dlna.adts:DLNA.ORG_PN=AAC_ADTS;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/vnd.dlna.adts:DLNA.ORG_PN=AAC_ADTS_320;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/ogg:DLNA.ORG_PN=OGG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,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:*:image/png:DLNA.ORG_PN=PNG_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/png:DLNA.ORG_PN=PNG_TN;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/gif:DLNA.ORG_PN=GIF_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG1;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_KO_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_JP_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-msvideo:DLNA.ORG_PN=AVI;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-flv:DLNA.ORG_PN=FLV;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-dvr:DLNA.ORG_PN=DVR_MS;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/wtv:DLNA.ORG_PN=WTV;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/ogg:DLNA.ORG_PN=OGV;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.rn-realvideo:DLNA.ORG_PN=REAL_VIDEO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_BASE;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L1_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L2_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L3_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_P2_3GPP_SP_L0B_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_P2_3GPP_SP_L0B_AMR;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_H263_3GPP_P0_L10_AMR;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_H263_MP4_P0_L10_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000";
  52. TranscodingProfiles = new[]
  53. {
  54. new TranscodingProfile
  55. {
  56. Container = "mp3",
  57. AudioCodec = "mp3",
  58. Type = DlnaProfileType.Audio
  59. },
  60. new TranscodingProfile
  61. {
  62. Container = "mkv",
  63. VideoCodec = "h264",
  64. AudioCodec = "ac3,aac,mp3",
  65. Type = DlnaProfileType.Video
  66. },
  67. new TranscodingProfile
  68. {
  69. Container = "jpeg",
  70. Type = DlnaProfileType.Photo
  71. }
  72. };
  73. DirectPlayProfiles = new[]
  74. {
  75. new DirectPlayProfile
  76. {
  77. Container = "ts,mpegts",
  78. VideoCodec = "mpeg1video,mpeg2video,h264",
  79. AudioCodec = "ac3,aac,mp3,pcm",
  80. Type = DlnaProfileType.Video
  81. },
  82. new DirectPlayProfile
  83. {
  84. Container = "mpeg,mpg",
  85. VideoCodec = "mpeg1video,mpeg2video",
  86. AudioCodec = "ac3,mp3,mp2,pcm",
  87. Type = DlnaProfileType.Video
  88. },
  89. new DirectPlayProfile
  90. {
  91. Container = "mp4,m4v",
  92. VideoCodec = "mpeg4,h264",
  93. AudioCodec = "ac3,aac,pcm,mp3",
  94. Type = DlnaProfileType.Video
  95. },
  96. new DirectPlayProfile
  97. {
  98. Container = "avi",
  99. VideoCodec = "mpeg4,h264",
  100. AudioCodec = "ac3,aac,mp3,pcm",
  101. Type = DlnaProfileType.Video
  102. },
  103. new DirectPlayProfile
  104. {
  105. Container = "mkv",
  106. VideoCodec = "mpeg4,h264",
  107. AudioCodec = "ac3,dca,aac,mp3,pcm,dts",
  108. Type = DlnaProfileType.Video
  109. },
  110. new DirectPlayProfile
  111. {
  112. Container = "m2ts,mts",
  113. VideoCodec = "h264,mpeg4,vc1",
  114. AudioCodec = "aac,mp3,ac3,dca,dts",
  115. Type = DlnaProfileType.Video
  116. },
  117. new DirectPlayProfile
  118. {
  119. Container = "wmv,asf",
  120. Type = DlnaProfileType.Video
  121. },
  122. new DirectPlayProfile
  123. {
  124. Container = "mp3,m4a,wma,wav",
  125. Type = DlnaProfileType.Audio
  126. },
  127. new DirectPlayProfile
  128. {
  129. Container = "jpeg,png,gif",
  130. Type = DlnaProfileType.Photo
  131. }
  132. };
  133. CodecProfiles = new[]
  134. {
  135. new CodecProfile
  136. {
  137. Type = CodecType.Video,
  138. Codec = "h264",
  139. Conditions = new []
  140. {
  141. new ProfileCondition
  142. {
  143. Condition = ProfileConditionType.LessThanEqual,
  144. Property = ProfileConditionValue.Width,
  145. Value = "1920"
  146. },
  147. new ProfileCondition
  148. {
  149. Condition = ProfileConditionType.LessThanEqual,
  150. Property = ProfileConditionValue.Height,
  151. Value = "1080"
  152. },
  153. new ProfileCondition
  154. {
  155. Condition = ProfileConditionType.LessThanEqual,
  156. Property = ProfileConditionValue.VideoFramerate,
  157. Value = "30",
  158. IsRequired = false
  159. }
  160. }
  161. },
  162. new CodecProfile
  163. {
  164. Type = CodecType.VideoAudio,
  165. Codec = "ac3",
  166. Conditions = new []
  167. {
  168. new ProfileCondition
  169. {
  170. Condition = ProfileConditionType.LessThanEqual,
  171. Property = ProfileConditionValue.AudioChannels,
  172. Value = "6",
  173. IsRequired = false
  174. }
  175. }
  176. }
  177. };
  178. ContainerProfiles = new[]
  179. {
  180. new ContainerProfile
  181. {
  182. Type = DlnaProfileType.Photo,
  183. Conditions = new []
  184. {
  185. new ProfileCondition
  186. {
  187. Condition = ProfileConditionType.LessThanEqual,
  188. Property = ProfileConditionValue.Width,
  189. Value = "1920"
  190. },
  191. new ProfileCondition
  192. {
  193. Condition = ProfileConditionType.LessThanEqual,
  194. Property = ProfileConditionValue.Height,
  195. Value = "1080"
  196. }
  197. }
  198. }
  199. };
  200. SubtitleProfiles = new[]
  201. {
  202. new SubtitleProfile
  203. {
  204. Format = "srt",
  205. Method = SubtitleDeliveryMethod.Embed
  206. }
  207. };
  208. ResponseProfiles = new ResponseProfile[] { };
  209. }
  210. }
  211. }