SharpSmartTvProfile.cs 3.3 KB

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