|
@@ -268,6 +268,27 @@ namespace XHWK.WKTool
|
268
|
268
|
Login();
|
269
|
269
|
return;
|
270
|
270
|
}
|
|
271
|
+ string RecordScreenPathName = APP.WKData.WkPath + APP.WKData.WkName + "_录屏." + ((Enum_VideoType)int.Parse(FileToolsCommon.GetConfigValue("VideoType"))).ToString();
|
|
272
|
+ if (FileToolsCommon.IsExistFile(RecordScreenPathName))
|
|
273
|
+ {
|
|
274
|
+ MessageBoxResult dr = System.Windows.MessageBox.Show("已存在录屏,是否覆盖?", "提示", MessageBoxButton.OKCancel);
|
|
275
|
+ if (dr == MessageBoxResult.OK)
|
|
276
|
+ {
|
|
277
|
+ try
|
|
278
|
+ {
|
|
279
|
+ FileToolsCommon.DeleteFile(RecordScreenPathName);
|
|
280
|
+ APP.VideoList.RemoveAll(x => x.VideoPath == RecordScreenPathName);
|
|
281
|
+ }
|
|
282
|
+ catch (Exception ex)
|
|
283
|
+ {
|
|
284
|
+ LogHelper.WriteErrLog("【录屏】(BtnRecordingScreen_Click)无法移除视频," + ex.Message, ex);
|
|
285
|
+ }
|
|
286
|
+ }
|
|
287
|
+ else
|
|
288
|
+ {
|
|
289
|
+ return;
|
|
290
|
+ }
|
|
291
|
+ }
|
271
|
292
|
if (APP.W_ScreenRecordingToolbarWindow == null)
|
272
|
293
|
{
|
273
|
294
|
APP.W_ScreenRecordingToolbarWindow = new ScreenRecordingToolbarWindow
|
|
@@ -288,6 +309,7 @@ namespace XHWK.WKTool
|
288
|
309
|
APP.W_ScreenRecordingToolbarWindow.Topmost = true;
|
289
|
310
|
APP.W_ScreenRecordingToolbarWindow.Show();
|
290
|
311
|
Hide();
|
|
312
|
+ TxbRecordScreenWord.Text = "已录屏";
|
291
|
313
|
}
|
292
|
314
|
/// <summary>
|
293
|
315
|
/// 上传事件
|
|
@@ -1250,7 +1272,7 @@ namespace XHWK.WKTool
|
1250
|
1272
|
btnLoginType.IsEnabled = true;
|
1251
|
1273
|
IsSuspendR = true;
|
1252
|
1274
|
ImgRecord.Source = new BitmapImage(new Uri("pack://application:,,,/Images/microLessonSystem_14.png"));
|
1253
|
|
- TxbRecordingWord.Text = "录制";
|
|
1275
|
+ TxbRecordingWord.Text = "已录制";
|
1254
|
1276
|
try
|
1255
|
1277
|
{
|
1256
|
1278
|
APP.FFmpeg.StopFFmpeg(AudioPathName);
|
|
@@ -1288,10 +1310,9 @@ namespace XHWK.WKTool
|
1288
|
1310
|
}
|
1289
|
1311
|
FileToolsCommon.DeleteFile(ThumbnailPathName);
|
1290
|
1312
|
VideoInfo.RSTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
1313
|
+ //VideoInfo.VideoSize = FileToolsCommon.GetFileSizeByMB(VideoSavePathName).ToString() + " MB";
|
1291
|
1314
|
VideoInfo.VideoPath = VideoSavePathName;
|
1292
|
1315
|
VideoInfo.ThumbnailPath = ThumbnailPathName;
|
1293
|
|
- Thread.Sleep(500);
|
1294
|
|
- VideoInfo.VideoSize = FileToolsCommon.GetFileSizeByMB(VideoSavePathName).ToString() + " MB";
|
1295
|
1316
|
APP.FFmpeg.GenerateThumbnails(VideoSavePathName, ThumbnailPathName);
|
1296
|
1317
|
VideoInfo.FileGuid = Guid.NewGuid().ToString();
|
1297
|
1318
|
VideoInfo.IsUpload = false;
|