星火微课系统客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ModelVideo.cs 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. namespace XHWK.Model
  2. {
  3. /// <summary>
  4. /// 视频模型
  5. /// </summary>
  6. public class ModelVideo
  7. {
  8. private string _videoPath;
  9. private string _thumbnailPath;
  10. private EnumVideoType _videoType;
  11. private EnumWkVidetype _wkType;
  12. private string _rsTime;
  13. private string _videoSize;
  14. private long _videoSizebyte;
  15. private bool _isUpload;
  16. private string _fileGuid; //= System.Guid.NewGuid().ToString()
  17. private string _fileMd5;
  18. private string _savefolder;
  19. private int _block;
  20. private int _uploaded;
  21. private long _sliceLen;
  22. /// <summary>
  23. /// 视频路径
  24. /// </summary>
  25. public string VideoPath { get => _videoPath; set => _videoPath = value; }
  26. /// <summary>
  27. /// 缩略图路径
  28. /// </summary>
  29. public string ThumbnailPath { get => _thumbnailPath; set => _thumbnailPath = value; }
  30. /// <summary>
  31. /// 视频类型
  32. /// </summary>
  33. public EnumVideoType VideoType { get => _videoType; set => _videoType = value; }
  34. /// <summary>
  35. /// 微课类型
  36. /// </summary>
  37. public EnumWkVidetype WkType { get => _wkType; set => _wkType = value; }
  38. /// <summary>
  39. /// 录制时间
  40. /// </summary>
  41. public string RSTime { get => _rsTime; set => _rsTime = value; }
  42. /// <summary>
  43. /// 视频大小MB
  44. /// </summary>
  45. public string VideoSize { get => _videoSize; set => _videoSize = value; }
  46. /// <summary>
  47. /// 视频大小字节
  48. /// </summary>
  49. public long VideoSizebyte { get => _videoSizebyte; set => _videoSizebyte = value; }
  50. /// <summary>
  51. /// 是否已上传
  52. /// </summary>
  53. public bool IsUpload { get => _isUpload; set => _isUpload = value; }
  54. /// <summary>
  55. /// 文件唯一标示
  56. /// </summary>
  57. public string FileGuid { get => _fileGuid; set => _fileGuid = value; }
  58. /// <summary>
  59. /// 文件MD5
  60. /// </summary>
  61. public string FileMD5 { get => _fileMd5; set => _fileMd5 = value; }
  62. /// <summary>
  63. /// 文件保存地址 学校id/resource
  64. /// </summary>
  65. public string Savefolder { get => _savefolder; set => _savefolder = value; }
  66. /// <summary>
  67. /// 分块 每块最大5M
  68. /// </summary>
  69. public int Block { get => _block; set => _block = value; }
  70. /// <summary>
  71. /// 当前已上传到第几块
  72. /// </summary>
  73. public int Uploaded { get => _uploaded; set => _uploaded = value; }
  74. /// <summary>
  75. /// 视频每片长度
  76. /// </summary>
  77. public long SliceLen { get => _sliceLen; set => _sliceLen = value; }
  78. }
  79. /// <summary>
  80. /// 视频格式类型
  81. /// </summary>
  82. public enum EnumVideoType
  83. {
  84. Mp4 = 1,
  85. Flv = 2,
  86. Avi = 3
  87. }
  88. /// <summary>
  89. /// 录制视频类型
  90. /// </summary>
  91. public enum EnumWkVidetype
  92. {
  93. /// <summary>
  94. /// 录屏
  95. /// </summary>
  96. RecordingScreen = 1,
  97. /// <summary>
  98. /// 录课
  99. /// </summary>
  100. RecordingLessons = 2
  101. }
  102. }