Sfoglia il codice sorgente

zhao:增加下载信息

tags/录制修改前
耀 4 anni fa
parent
commit
1011fa6b8e

+ 15
- 11
XHWK.WKTool/App.cs Vedi File

@@ -137,6 +137,8 @@ namespace XHWK.WKTool
137 137
             Killffmpeg();
138 138
             LatticeFileHelper.RunPrintConfig();
139 139
         }
140
+
141
+        #region 杀死已存在的进程
140 142
         /// <summary>
141 143
         /// 结束已运行的程序
142 144
         /// </summary>
@@ -161,6 +163,18 @@ namespace XHWK.WKTool
161 163
                 }
162 164
             }
163 165
         }
166
+        /// <summary>
167
+        /// 杀死正在运行的ffmpeg
168
+        /// </summary>
169
+        public static void Killffmpeg()
170
+        {
171
+            Process[] KillProcessArray = Process.GetProcessesByName("ffmpeg");
172
+            foreach (var KillProcess in KillProcessArray)
173
+            {
174
+                KillProcess.Kill();
175
+            }
176
+        }
177
+        #endregion
164 178
 
165 179
         /// <summary>
166 180
         /// 错误处理
@@ -289,17 +303,7 @@ namespace XHWK.WKTool
289 303
             }
290 304
         }
291 305
         #endregion
292
-        /// <summary>
293
-        /// 杀死正在运行的ffmpeg
294
-        /// </summary>
295
-        public static void Killffmpeg()
296
-        {
297
-            Process[] KillProcessArray = Process.GetProcessesByName("ffmpeg");
298
-            foreach (var KillProcess in KillProcessArray)
299
-            {
300
-                KillProcess.Kill();
301
-            }
302
-        }
306
+
303 307
         #region 内存处理 -创建人:赵耀 -创建时间:2020年8月12日
304 308
 
305 309
         /// <summary>

+ 4
- 0
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs Vedi File

@@ -294,6 +294,10 @@ namespace XHWK.WKTool
294 294
                         VideoInfo.VidePath = VideoSavePathName;
295 295
                         VideoInfo.ThumbnailPath = ThumbnailPathName;
296 296
                         APP.FFmpeg.GenerateThumbnails(VideoSavePathName, ThumbnailPathName);
297
+                        VideoInfo.FileGuid = Guid.NewGuid().ToString();
298
+                        VideoInfo.IsUpload = false;
299
+                        VideoInfo.Uploaded = 0;
300
+                        VideoInfo.Savefolder = APP.UserInfo.Schoolid + "/resource";
297 301
                         APP.VideoList.Add(VideoInfo);
298 302
                         //保存数据
299 303
                         APP.SaveWkData();

+ 4
- 0
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs Vedi File

@@ -1312,6 +1312,10 @@ namespace XHWK.WKTool
1312 1312
                         VideoInfo.VidePath = VideoSavePathName;
1313 1313
                         VideoInfo.ThumbnailPath = ThumbnailPathName;
1314 1314
                         APP.FFmpeg.GenerateThumbnails(VideoSavePathName, ThumbnailPathName);
1315
+                        VideoInfo.FileGuid = Guid.NewGuid().ToString();
1316
+                        VideoInfo.IsUpload = false;
1317
+                        VideoInfo.Uploaded = 0;
1318
+                        VideoInfo.Savefolder = APP.UserInfo.Schoolid + "/resource";
1315 1319
                         APP.VideoList.Add(VideoInfo);
1316 1320
                         //保存数据
1317 1321
                         APP.SaveWkData();

Loading…
Annulla
Salva