Video.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Model.Entities
  3. {
  4. public class Video : BaseItem
  5. {
  6. public VideoType VideoType { get; set; }
  7. public IEnumerable<SubtitleStream> Subtitles { get; set; }
  8. public IEnumerable<AudioStream> AudioStreams { get; set; }
  9. public int Height { get; set; }
  10. public int Width { get; set; }
  11. public string ScanType { get; set; }
  12. public float FrameRate { get; set; }
  13. public int BitRate { get; set; }
  14. public string Codec { get; set; }
  15. }
  16. public class AudioStream
  17. {
  18. public string Codec { get; set; }
  19. public string Language { get; set; }
  20. public int BitRate { get; set; }
  21. public int Channels { get; set; }
  22. public int SampleRate { get; set; }
  23. public bool IsDefault { get; set; }
  24. }
  25. public class SubtitleStream
  26. {
  27. public string Language { get; set; }
  28. public bool IsDefault { get; set; }
  29. public bool IsForced { get; set; }
  30. }
  31. public enum VideoType
  32. {
  33. VideoFile,
  34. DVD,
  35. BluRay
  36. }
  37. }