星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Model_Video.cs 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. namespace XHWK.Model
  2. {
  3. /// <summary>
  4. /// 视频模型
  5. /// </summary>
  6. public class Model_Video
  7. {
  8. private string _videoPath;
  9. private string _thumbnailPath;
  10. private Enum_VideoType _videoType;
  11. private Enum_WKVidetype _wkType;
  12. private string _RSTime;
  13. private string _videoSize;
  14. private long _videoSizebyte;
  15. private bool _IsUpload = false;
  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 Enum_VideoType VideoType { get => _videoType; set => _videoType = value; }
  34. /// <summary>
  35. /// 微课类型
  36. /// </summary>
  37. public Enum_WKVidetype 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 Enum_VideoType
  83. {
  84. MP4 = 1,
  85. FlV = 2,
  86. AVI = 3
  87. }
  88. /// <summary>
  89. /// 录制视频类型
  90. /// </summary>
  91. public enum Enum_WKVidetype
  92. {
  93. /// <summary>
  94. /// 录屏
  95. /// </summary>
  96. RecordingScreen = 1,
  97. /// <summary>
  98. /// 录课
  99. /// </summary>
  100. RecordingLessons = 2
  101. }
  102. }