using System.Collections.Generic; using System.Runtime.Remoting.Messaging; namespace XHWK.Model { /// /// 视频模型 /// 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 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; /// /// 视频路径 /// public string VideoPath { get => _videoPath; set => _videoPath = value; } /// /// 缩略图路径 /// public string ThumbnailPath { get => _thumbnailPath; set => _thumbnailPath = value; } /// /// 视频类型 /// public Enum_VideoType VideoType { get => _videoType; set => _videoType = value; } /// /// 微课类型 /// public Enum_WKVidetype WkType { get => _wkType; set => _wkType = value; } /// /// 录制时间 /// public string RSTime { get => _RSTime; set => _RSTime = value; } /// /// 视频大小MB /// public string VideoSize { get => _videoSize; set => _videoSize = value; } /// /// 是否已上传 /// public bool IsUpload { get => _IsUpload; set => _IsUpload = value; } /// /// 文件唯一标示 /// public string FileGuid { get => _FileGuid; set => _FileGuid = value; } /// /// 文件MD5 /// public string FileMD5 { get => _FileMD5; set => _FileMD5 = value; } /// /// 文件保存地址 学校id/resource /// public string Savefolder { get => _Savefolder; set => _Savefolder = value; } /// /// 分块 每块最大5M /// public int Block { get => _Block; set => _Block = value; } /// /// 当前已上传到第几块 /// public int Uploaded { get => _Uploaded; set => _Uploaded = value; } /// /// 视频每片长度 /// public long SliceLen { get => _SliceLen; set => _SliceLen = value; } } /// /// 视频格式类型 /// public enum Enum_VideoType { MP4 = 1, FlV = 2, AVI = 3 } /// /// 录制视频类型 /// public enum Enum_WKVidetype { /// /// 录屏 /// RecordingScreen = 1, /// /// 录课 /// RecordingLessons = 2 } }