123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- namespace XHWK.Model
- {
- /// <summary>
- /// 视频模型
- /// </summary>
- public class Model_Video
- {
- private string _videoPath;
- private string _thumbnailPath;
- private Enum_VideoType _videoType;
- private Enum_WKVidetype _wkType;
- private string _RSTime;
- private string _videoSize;
- private long _videoSizebyte;
- private bool _IsUpload = false;
- private string _FileGuid;//= System.Guid.NewGuid().ToString()
- private string _FileMD5;
- private string _Savefolder;
- private int _Block;
- private int _Uploaded;
- private long _SliceLen;
- /// <summary>
- /// 视频路径
- /// </summary>
- public string VideoPath { get => _videoPath; set => _videoPath = 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 long VideoSizebyte { get => _videoSizebyte; set => _videoSizebyte = 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 long SliceLen { get => _SliceLen; set => _SliceLen = 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
- }
-
- }
|