星火微课系统客户端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Model_Video.cs 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System.Collections.Generic;
  2. namespace XHWK.Model
  3. {
  4. /// <summary>
  5. /// 视频模型
  6. /// </summary>
  7. public class Model_Video
  8. {
  9. private string _videPath;
  10. private string _thumbnailPath;
  11. private Enum_VideoType _videoType;
  12. private Enum_WKVidetype _wkType;
  13. private string _RSTime;
  14. private string _videoSize;
  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. /// <summary>
  22. /// 视频路径
  23. /// </summary>
  24. public string VidePath { get => _videPath; set => _videPath = value; }
  25. /// <summary>
  26. /// 缩略图路径
  27. /// </summary>
  28. public string ThumbnailPath { get => _thumbnailPath; set => _thumbnailPath = value; }
  29. /// <summary>
  30. /// 视频类型
  31. /// </summary>
  32. public Enum_VideoType VideoType { get => _videoType; set => _videoType = value; }
  33. /// <summary>
  34. /// 微课类型
  35. /// </summary>
  36. public Enum_WKVidetype WkType { get => _wkType; set => _wkType = value; }
  37. /// <summary>
  38. /// 录制时间
  39. /// </summary>
  40. public string RSTime { get => _RSTime; set => _RSTime = value; }
  41. /// <summary>
  42. /// 视频大小MB
  43. /// </summary>
  44. public string VideoSize { get => _videoSize; set => _videoSize = value; }
  45. /// <summary>
  46. /// 是否已上传
  47. /// </summary>
  48. public bool IsUpload { get => _IsUpload; set => _IsUpload = value; }
  49. /// <summary>
  50. /// 文件唯一标示
  51. /// </summary>
  52. public string FileGuid { get => _FileGuid; set => _FileGuid = value; }
  53. /// <summary>
  54. /// 文件MD5
  55. /// </summary>
  56. public string FileMD5 { get => _FileMD5; set => _FileMD5 = value; }
  57. /// <summary>
  58. /// 文件保存地址 学校id/resource
  59. /// </summary>
  60. public string Savefolder { get => _Savefolder; set => _Savefolder = value; }
  61. /// <summary>
  62. /// 分块 每块最大5M
  63. /// </summary>
  64. public int Block { get => _Block; set => _Block = value; }
  65. /// <summary>
  66. /// 当前已上传到第几块
  67. /// </summary>
  68. public int Uploaded { get => _Uploaded; set => _Uploaded = value; }
  69. }
  70. /// <summary>
  71. /// 视频格式类型
  72. /// </summary>
  73. public enum Enum_VideoType
  74. {
  75. MP4 = 1,
  76. FlV = 2,
  77. AVI = 3
  78. }
  79. /// <summary>
  80. /// 录制视频类型
  81. /// </summary>
  82. public enum Enum_WKVidetype
  83. {
  84. /// <summary>
  85. /// 录屏
  86. /// </summary>
  87. RecordingScreen = 1,
  88. /// <summary>
  89. /// 录课
  90. /// </summary>
  91. RecordingLessons = 2
  92. }
  93. }