Video.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MediaBrowser.Model.Entities
  7. {
  8. public class Video : BaseItem
  9. {
  10. public VideoType VideoType { get; set; }
  11. private IEnumerable<string> _Subtitles = new string[] { };
  12. public IEnumerable<string> Subtitles { get { return _Subtitles; } set { _Subtitles = value; } }
  13. private IEnumerable<AudioStream> _AudioStreams = new AudioStream[] { };
  14. public IEnumerable<AudioStream> AudioStreams { get { return _AudioStreams; } set { _AudioStreams = value; } }
  15. public int Height { get; set; }
  16. public int Width { get; set; }
  17. public string ScanType { get; set; }
  18. public string FrameRate { get; set; }
  19. public int VideoBitRate { get; set; }
  20. public string VideoCodec { get; set; }
  21. }
  22. public class AudioStream
  23. {
  24. public string AudioFormat { get; set; }
  25. public string AudioProfile { get; set; }
  26. public string Language { get; set; }
  27. public int BitRate { get; set; }
  28. public int Channels { get; set; }
  29. }
  30. public enum VideoType
  31. {
  32. VideoFile = 1,
  33. DVD = 2,
  34. BluRay = 3
  35. }
  36. }