MediaMonkeyProfile.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using MediaBrowser.Model.Dlna;
  2. using System.Xml.Serialization;
  3. namespace Emby.Dlna.Profiles
  4. {
  5. [XmlRoot("Profile")]
  6. public class MediaMonkeyProfile : DefaultProfile
  7. {
  8. public MediaMonkeyProfile()
  9. {
  10. Name = "MediaMonkey";
  11. SupportedMediaTypes = "Audio";
  12. Identification = new DeviceIdentification
  13. {
  14. FriendlyName = @"MediaMonkey",
  15. Headers = new[]
  16. {
  17. new HttpHeaderInfo
  18. {
  19. Name = "User-Agent",
  20. Value = "MediaMonkey",
  21. Match = HeaderMatchType.Substring
  22. }
  23. }
  24. };
  25. DirectPlayProfiles = new[]
  26. {
  27. new DirectPlayProfile
  28. {
  29. Container = "aac,mp3,mpa,wav,wma,mp2,ogg,oga,webma,ape,opus,flac,m4a",
  30. Type = DlnaProfileType.Audio
  31. }
  32. };
  33. ResponseProfiles = new ResponseProfile[] { };
  34. }
  35. }
  36. }