Video.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using System.Collections.Generic;
  2. using ProtoBuf;
  3. namespace MediaBrowser.Model.Entities
  4. {
  5. public class Video : BaseItem
  6. {
  7. public VideoType VideoType { get; set; }
  8. public List<SubtitleStream> Subtitles { get; set; }
  9. public List<AudioStream> AudioStreams { get; set; }
  10. public int Height { get; set; }
  11. public int Width { get; set; }
  12. public string ScanType { get; set; }
  13. public float FrameRate { get; set; }
  14. public int BitRate { get; set; }
  15. public string Codec { get; set; }
  16. }
  17. [ProtoContract]
  18. public class AudioStream
  19. {
  20. [ProtoMember(1)]
  21. public string Codec { get; set; }
  22. [ProtoMember(2)]
  23. public string Language { get; set; }
  24. [ProtoMember(3)]
  25. public int BitRate { get; set; }
  26. [ProtoMember(4)]
  27. public int Channels { get; set; }
  28. [ProtoMember(5)]
  29. public int SampleRate { get; set; }
  30. [ProtoMember(6)]
  31. public bool IsDefault { get; set; }
  32. }
  33. [ProtoContract]
  34. public class SubtitleStream
  35. {
  36. [ProtoMember(1)]
  37. public string Language { get; set; }
  38. [ProtoMember(2)]
  39. public bool IsDefault { get; set; }
  40. [ProtoMember(3)]
  41. public bool IsForced { get; set; }
  42. }
  43. public enum VideoType
  44. {
  45. VideoFile,
  46. Iso,
  47. DVD,
  48. BluRay
  49. }
  50. }