SonyBlurayPlayer2013.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. #pragma warning disable CS1591
  2. using System;
  3. using MediaBrowser.Model.Dlna;
  4. namespace Emby.Dlna.Profiles
  5. {
  6. [System.Xml.Serialization.XmlRoot("Profile")]
  7. public class SonyBlurayPlayer2013 : DefaultProfile
  8. {
  9. public SonyBlurayPlayer2013()
  10. {
  11. Name = "Sony Blu-ray Player 2013";
  12. Identification = new DeviceIdentification
  13. {
  14. ModelNumber = "BDP-2013",
  15. Headers = new[]
  16. {
  17. new HttpHeaderInfo
  18. {
  19. Name = "X-AV-Physical-Unit-Info",
  20. Value = "BDP-S1100",
  21. Match = HeaderMatchType.Substring
  22. },
  23. new HttpHeaderInfo
  24. {
  25. Name = "X-AV-Physical-Unit-Info",
  26. Value = "BDP-S3100",
  27. Match = HeaderMatchType.Substring
  28. },
  29. new HttpHeaderInfo
  30. {
  31. Name = "X-AV-Physical-Unit-Info",
  32. Value = "BDP-S5100",
  33. Match = HeaderMatchType.Substring
  34. },
  35. new HttpHeaderInfo
  36. {
  37. Name = "X-AV-Physical-Unit-Info",
  38. Value = "BDP-S6100",
  39. Match = HeaderMatchType.Substring
  40. },
  41. new HttpHeaderInfo
  42. {
  43. Name = "X-AV-Physical-Unit-Info",
  44. Value = "BDP-S7100",
  45. Match = HeaderMatchType.Substring
  46. }
  47. }
  48. };
  49. AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av");
  50. ModelName = "Windows Media Player Sharing";
  51. ModelNumber = "3.0";
  52. Manufacturer = "Microsoft Corporation";
  53. 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";
  54. TranscodingProfiles = new[]
  55. {
  56. new TranscodingProfile
  57. {
  58. Container = "mp3",
  59. AudioCodec = "mp3",
  60. Type = DlnaProfileType.Audio
  61. },
  62. new TranscodingProfile
  63. {
  64. Container = "mkv",
  65. VideoCodec = "h264",
  66. AudioCodec = "ac3,aac,mp3",
  67. Type = DlnaProfileType.Video
  68. },
  69. new TranscodingProfile
  70. {
  71. Container = "jpeg",
  72. Type = DlnaProfileType.Photo
  73. }
  74. };
  75. DirectPlayProfiles = new[]
  76. {
  77. new DirectPlayProfile
  78. {
  79. Container = "ts,mpegts",
  80. VideoCodec = "mpeg1video,mpeg2video,h264",
  81. AudioCodec = "ac3,aac,mp3,pcm",
  82. Type = DlnaProfileType.Video
  83. },
  84. new DirectPlayProfile
  85. {
  86. Container = "mpeg,mpg",
  87. VideoCodec = "mpeg1video,mpeg2video",
  88. AudioCodec = "ac3,mp3,mp2,pcm",
  89. Type = DlnaProfileType.Video
  90. },
  91. new DirectPlayProfile
  92. {
  93. Container = "mp4,m4v",
  94. VideoCodec = "mpeg4,h264",
  95. AudioCodec = "ac3,aac,pcm,mp3",
  96. Type = DlnaProfileType.Video
  97. },
  98. new DirectPlayProfile
  99. {
  100. Container = "avi",
  101. VideoCodec = "mpeg4,h264",
  102. AudioCodec = "ac3,aac,mp3,pcm",
  103. Type = DlnaProfileType.Video
  104. },
  105. new DirectPlayProfile
  106. {
  107. Container = "mkv",
  108. VideoCodec = "mpeg4,h264",
  109. AudioCodec = "ac3,dca,aac,mp3,pcm,dts",
  110. Type = DlnaProfileType.Video
  111. },
  112. new DirectPlayProfile
  113. {
  114. Container = "m2ts,mts",
  115. VideoCodec = "h264,mpeg4,vc1",
  116. AudioCodec = "aac,mp3,ac3,dca,dts",
  117. Type = DlnaProfileType.Video
  118. },
  119. new DirectPlayProfile
  120. {
  121. Container = "wmv,asf",
  122. Type = DlnaProfileType.Video
  123. },
  124. new DirectPlayProfile
  125. {
  126. Container = "mp3,m4a,wma,wav",
  127. Type = DlnaProfileType.Audio
  128. },
  129. new DirectPlayProfile
  130. {
  131. Container = "jpeg,png,gif",
  132. Type = DlnaProfileType.Photo
  133. }
  134. };
  135. CodecProfiles = new[]
  136. {
  137. new CodecProfile
  138. {
  139. Type = CodecType.Video,
  140. Codec = "h264",
  141. Conditions = new[]
  142. {
  143. new ProfileCondition
  144. {
  145. Condition = ProfileConditionType.LessThanEqual,
  146. Property = ProfileConditionValue.Width,
  147. Value = "1920"
  148. },
  149. new ProfileCondition
  150. {
  151. Condition = ProfileConditionType.LessThanEqual,
  152. Property = ProfileConditionValue.Height,
  153. Value = "1080"
  154. },
  155. new ProfileCondition
  156. {
  157. Condition = ProfileConditionType.LessThanEqual,
  158. Property = ProfileConditionValue.VideoFramerate,
  159. Value = "30",
  160. IsRequired = false
  161. }
  162. }
  163. },
  164. new CodecProfile
  165. {
  166. Type = CodecType.VideoAudio,
  167. Codec = "ac3",
  168. Conditions = new[]
  169. {
  170. new ProfileCondition
  171. {
  172. Condition = ProfileConditionType.LessThanEqual,
  173. Property = ProfileConditionValue.AudioChannels,
  174. Value = "6",
  175. IsRequired = false
  176. }
  177. }
  178. }
  179. };
  180. ContainerProfiles = new[]
  181. {
  182. new ContainerProfile
  183. {
  184. Type = DlnaProfileType.Photo,
  185. Conditions = new[]
  186. {
  187. new ProfileCondition
  188. {
  189. Condition = ProfileConditionType.LessThanEqual,
  190. Property = ProfileConditionValue.Width,
  191. Value = "1920"
  192. },
  193. new ProfileCondition
  194. {
  195. Condition = ProfileConditionType.LessThanEqual,
  196. Property = ProfileConditionValue.Height,
  197. Value = "1080"
  198. }
  199. }
  200. }
  201. };
  202. SubtitleProfiles = new[]
  203. {
  204. new SubtitleProfile
  205. {
  206. Format = "srt",
  207. Method = SubtitleDeliveryMethod.Embed
  208. }
  209. };
  210. ResponseProfiles = Array.Empty<ResponseProfile>();
  211. }
  212. }
  213. }