SharpSmartTvProfile.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #pragma warning disable CS1591
  2. #pragma warning disable SA1600
  3. using MediaBrowser.Model.Dlna;
  4. namespace Emby.Dlna.Profiles
  5. {
  6. [System.Xml.Serialization.XmlRoot("Profile")]
  7. public class SharpSmartTvProfile : DefaultProfile
  8. {
  9. public SharpSmartTvProfile()
  10. {
  11. Name = "Sharp Smart TV";
  12. RequiresPlainFolders = true;
  13. RequiresPlainVideoItems = true;
  14. Identification = new DeviceIdentification
  15. {
  16. Manufacturer = "Sharp",
  17. Headers = new[]
  18. {
  19. new HttpHeaderInfo
  20. {
  21. Name = "User-Agent",
  22. Value = "Sharp",
  23. Match = HeaderMatchType.Substring
  24. }
  25. }
  26. };
  27. TranscodingProfiles = new[]
  28. {
  29. new TranscodingProfile
  30. {
  31. Container = "mp3",
  32. AudioCodec = "mp3",
  33. Type = DlnaProfileType.Audio
  34. },
  35. new TranscodingProfile
  36. {
  37. Container = "ts",
  38. Type = DlnaProfileType.Video,
  39. AudioCodec = "ac3,aac,mp3,dts,dca",
  40. VideoCodec = "h264",
  41. EnableMpegtsM2TsMode = true
  42. },
  43. new TranscodingProfile
  44. {
  45. Container = "jpeg",
  46. Type = DlnaProfileType.Photo
  47. }
  48. };
  49. DirectPlayProfiles = new[]
  50. {
  51. new DirectPlayProfile
  52. {
  53. Container = "m4v,mkv,avi,mov,mp4",
  54. VideoCodec = "h264,mpeg4",
  55. AudioCodec = "aac,mp3,ac3,dts,dca",
  56. Type = DlnaProfileType.Video
  57. },
  58. new DirectPlayProfile
  59. {
  60. Container = "asf,wmv",
  61. Type = DlnaProfileType.Video
  62. },
  63. new DirectPlayProfile
  64. {
  65. Container = "mpg,mpeg",
  66. VideoCodec = "mpeg2video",
  67. AudioCodec = "mp3,aac",
  68. Type = DlnaProfileType.Video
  69. },
  70. new DirectPlayProfile
  71. {
  72. Container = "flv",
  73. VideoCodec = "h264",
  74. AudioCodec = "mp3,aac",
  75. Type = DlnaProfileType.Video
  76. },
  77. new DirectPlayProfile
  78. {
  79. Container = "mp3,wav",
  80. Type = DlnaProfileType.Audio
  81. }
  82. };
  83. SubtitleProfiles = new[]
  84. {
  85. new SubtitleProfile
  86. {
  87. Format = "srt",
  88. Method = SubtitleDeliveryMethod.Embed
  89. },
  90. new SubtitleProfile
  91. {
  92. Format = "srt",
  93. Method = SubtitleDeliveryMethod.External
  94. }
  95. };
  96. ResponseProfiles = new[]
  97. {
  98. new ResponseProfile
  99. {
  100. Container = "m4v",
  101. Type = DlnaProfileType.Video,
  102. MimeType = "video/mp4"
  103. }
  104. };
  105. }
  106. }
  107. }