XboxOneProfile.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System.Xml.Serialization;
  2. using MediaBrowser.Controller.Dlna;
  3. using MediaBrowser.Model.Dlna;
  4. namespace MediaBrowser.Dlna.Profiles
  5. {
  6. [XmlRoot("Profile")]
  7. public class XboxOneProfile : DefaultProfile
  8. {
  9. public XboxOneProfile()
  10. {
  11. Name = "Xbox One";
  12. Identification = new DeviceIdentification
  13. {
  14. ModelName = "Xbox One",
  15. FriendlyName = "Xbox-SystemOS"
  16. };
  17. TranscodingProfiles = new[]
  18. {
  19. new TranscodingProfile
  20. {
  21. Container = "mp3",
  22. AudioCodec = "mp3",
  23. Type = DlnaProfileType.Audio
  24. },
  25. new TranscodingProfile
  26. {
  27. Container = "ts",
  28. VideoCodec = "h264",
  29. AudioCodec = "aac",
  30. Type = DlnaProfileType.Video
  31. }
  32. };
  33. DirectPlayProfiles = new[]
  34. {
  35. new DirectPlayProfile
  36. {
  37. Container = "mp3,wma",
  38. Type = DlnaProfileType.Audio
  39. }
  40. };
  41. ResponseProfiles = new[]
  42. {
  43. new ResponseProfile
  44. {
  45. Container = "avi",
  46. MimeType = "video/x-msvideo",
  47. Type = DlnaProfileType.Video
  48. }
  49. };
  50. }
  51. }
  52. }