星火微课系统客户端
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.1KB

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