DirectPlayProfile.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Controller.Dlna
  3. {
  4. public class DirectPlayProfile
  5. {
  6. public string[] Containers { get; set; }
  7. public string[] AudioCodecs { get; set; }
  8. public string[] VideoCodecs { get; set; }
  9. public DlnaProfileType Type { get; set; }
  10. public List<ProfileCondition> Conditions { get; set; }
  11. public DirectPlayProfile()
  12. {
  13. Conditions = new List<ProfileCondition>();
  14. AudioCodecs = new string[] { };
  15. VideoCodecs = new string[] { };
  16. Containers = new string[] { };
  17. }
  18. }
  19. public class ProfileCondition
  20. {
  21. public ProfileConditionType Condition { get; set; }
  22. public ProfileConditionValue Property { get; set; }
  23. public string Value { get; set; }
  24. }
  25. public enum DlnaProfileType
  26. {
  27. Audio = 0,
  28. Video = 1,
  29. Photo = 2
  30. }
  31. public enum ProfileConditionType
  32. {
  33. Equals = 0,
  34. NotEquals = 1,
  35. LessThanEqual = 2,
  36. GreaterThanEqual = 3
  37. }
  38. public enum ProfileConditionValue
  39. {
  40. AudioChannels,
  41. AudioBitrate,
  42. Filesize,
  43. VideoWidth,
  44. VideoHeight,
  45. VideoBitrate,
  46. VideoFramerate,
  47. VideoLevel
  48. }
  49. }