Windows81Profile.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. using MediaBrowser.Model.Dlna;
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Dlna.Profiles
  4. {
  5. [XmlRoot("Profile")]
  6. public class Windows81Profile : DefaultProfile
  7. {
  8. public Windows81Profile()
  9. {
  10. Name = "Windows 8/RT";
  11. Identification = new DeviceIdentification
  12. {
  13. Manufacturer = "Microsoft SDK Customer"
  14. };
  15. TranscodingProfiles = new[]
  16. {
  17. new TranscodingProfile
  18. {
  19. Container = "mp3",
  20. AudioCodec = "mp3",
  21. Type = DlnaProfileType.Audio
  22. },
  23. new TranscodingProfile
  24. {
  25. Container = "ts",
  26. VideoCodec = "h264",
  27. AudioCodec = "aac",
  28. Type = DlnaProfileType.Video,
  29. VideoProfile = "Baseline"
  30. }
  31. };
  32. DirectPlayProfiles = new[]
  33. {
  34. new DirectPlayProfile
  35. {
  36. Container = "mp4,mov",
  37. VideoCodec = "h264,mpeg4",
  38. AudioCodec = "aac,ac3,eac3,mp3,pcm",
  39. Type = DlnaProfileType.Video
  40. },
  41. new DirectPlayProfile
  42. {
  43. Container = "ts",
  44. VideoCodec = "h264",
  45. AudioCodec = "aac,ac3,eac3,mp3,mp2,pcm",
  46. Type = DlnaProfileType.Video
  47. },
  48. new DirectPlayProfile
  49. {
  50. Container = "asf",
  51. VideoCodec = "wmv2,wmv3,vc1",
  52. AudioCodec = "wmav2,wmapro,wmavoice",
  53. Type = DlnaProfileType.Video
  54. },
  55. new DirectPlayProfile
  56. {
  57. Container = "avi",
  58. VideoCodec = "mpeg4,msmpeg4,mjpeg",
  59. AudioCodec = "mp3,ac3,eac3,mp2,pcm",
  60. Type = DlnaProfileType.Video
  61. },
  62. new DirectPlayProfile
  63. {
  64. Container = "mp4",
  65. AudioCodec = "aac",
  66. Type = DlnaProfileType.Audio
  67. },
  68. new DirectPlayProfile
  69. {
  70. Container = "mp3",
  71. AudioCodec = "mp3",
  72. Type = DlnaProfileType.Audio
  73. },
  74. new DirectPlayProfile
  75. {
  76. Container = "jpeg",
  77. Type = DlnaProfileType.Photo
  78. }
  79. };
  80. CodecProfiles = new[]
  81. {
  82. new CodecProfile
  83. {
  84. Type = CodecType.Video,
  85. Conditions = new []
  86. {
  87. new ProfileCondition
  88. {
  89. Condition = ProfileConditionType.LessThanEqual,
  90. Property = ProfileConditionValue.VideoBitDepth,
  91. Value = "8",
  92. IsRequired = false
  93. }
  94. }
  95. },
  96. new CodecProfile
  97. {
  98. Type = CodecType.VideoAudio,
  99. Codec = "aac,eac3",
  100. Conditions = new []
  101. {
  102. new ProfileCondition
  103. {
  104. Condition = ProfileConditionType.LessThanEqual,
  105. Property = ProfileConditionValue.AudioChannels,
  106. Value = "8"
  107. }
  108. }
  109. },
  110. new CodecProfile
  111. {
  112. Type = CodecType.VideoAudio,
  113. Codec = "ac3",
  114. Conditions = new []
  115. {
  116. new ProfileCondition
  117. {
  118. Condition = ProfileConditionType.LessThanEqual,
  119. Property = ProfileConditionValue.AudioChannels,
  120. Value = "6"
  121. }
  122. }
  123. }
  124. };
  125. }
  126. }
  127. }