SonyBlurayPlayer2013.cs 13 KB

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