|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- using System.Collections.Generic;
-
- namespace XHWK.Model
- {
- /// <summary>
- /// 视频模型
- /// </summary>
- public class Model_Video
- {
- private string _videPath;
- private string _thumbnailPath;
- private Enum_VideoType _videoType;
- private Enum_WKVidetype _wkType;
- private string _RSTime;
- private string _videoSize;
- private bool _IsUpload=false;
- private string _FileGuid;//= System.Guid.NewGuid().ToString()
- private string _FileMD5;
- private string _Savefolder;
- private int _Block;
- private int _Uploaded;
- /// <summary>
- /// 视频路径
- /// </summary>
- public string VidePath { get => _videPath; set => _videPath = value; }
- /// <summary>
- /// 缩略图路径
- /// </summary>
- public string ThumbnailPath { get => _thumbnailPath; set => _thumbnailPath = value; }
- /// <summary>
- /// 视频类型
- /// </summary>
- public Enum_VideoType VideoType { get => _videoType; set => _videoType = value; }
- /// <summary>
- /// 微课类型
- /// </summary>
- public Enum_WKVidetype WkType { get => _wkType; set => _wkType = value; }
- /// <summary>
- /// 录制时间
- /// </summary>
- public string RSTime { get => _RSTime; set => _RSTime = value; }
- /// <summary>
- /// 视频大小MB
- /// </summary>
- public string VideoSize { get => _videoSize; set => _videoSize = value; }
- /// <summary>
- /// 是否已上传
- /// </summary>
- public bool IsUpload { get => _IsUpload; set => _IsUpload = value; }
- /// <summary>
- /// 文件唯一标示
- /// </summary>
- public string FileGuid { get => _FileGuid; set => _FileGuid = value; }
- /// <summary>
- /// 文件MD5
- /// </summary>
- public string FileMD5 { get => _FileMD5; set => _FileMD5 = value; }
- /// <summary>
- /// 文件保存地址 学校id/resource
- /// </summary>
- public string Savefolder { get => _Savefolder; set => _Savefolder = value; }
- /// <summary>
- /// 分块 每块最大5M
- /// </summary>
- public int Block { get => _Block; set => _Block = value; }
- /// <summary>
- /// 当前已上传到第几块
- /// </summary>
- public int Uploaded { get => _Uploaded; set => _Uploaded = value; }
- }
-
- /// <summary>
- /// 视频格式类型
- /// </summary>
- public enum Enum_VideoType
- {
- MP4 = 1,
- FlV = 2,
- AVI = 3
- }
-
- /// <summary>
- /// 录制视频类型
- /// </summary>
- public enum Enum_WKVidetype
- {
- /// <summary>
- /// 录屏
- /// </summary>
- RecordingScreen = 1,
- /// <summary>
- /// 录课
- /// </summary>
- RecordingLessons = 2
- }
-
- }
|