crabatool 1.0.855 → 1.0.856
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tool/evsockettool.js +6 -6
package/package.json
CHANGED
package/tool/evsockettool.js
CHANGED
|
@@ -81,7 +81,7 @@ function startEvRecording(conn) {
|
|
|
81
81
|
var evPath = autoDetectEvPath();
|
|
82
82
|
if (!evPath) {
|
|
83
83
|
watchEvOutput(conn);
|
|
84
|
-
sendEvMessage(conn, '
|
|
84
|
+
sendEvMessage(conn, 'msg', '未找到ev录屏工具,请手动启动');
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -103,7 +103,7 @@ function startEvRecording(conn) {
|
|
|
103
103
|
child.on('error', function(error) {
|
|
104
104
|
startupError = true;
|
|
105
105
|
log('启动ev录屏工具失败:', error.message);
|
|
106
|
-
sendEvMessage(conn, '
|
|
106
|
+
sendEvMessage(conn, 'msg', '请手动启动,启动ev录屏工具失败: ' + error.message);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
// 对于GUI应用程序,进程会在后台运行,不会立即退出
|
|
@@ -111,7 +111,7 @@ function startEvRecording(conn) {
|
|
|
111
111
|
setTimeout(function() {
|
|
112
112
|
if (!startupError) {
|
|
113
113
|
log('ev录屏工具已启动');
|
|
114
|
-
sendEvMessage(conn, '
|
|
114
|
+
sendEvMessage(conn, 'msg', 'ev录屏工具已启动,请开始录制');
|
|
115
115
|
}
|
|
116
116
|
}, 1000);
|
|
117
117
|
|
|
@@ -119,7 +119,7 @@ function startEvRecording(conn) {
|
|
|
119
119
|
child.unref();
|
|
120
120
|
} catch (ex) {
|
|
121
121
|
log('启动ev录屏工具异常:', ex.message);
|
|
122
|
-
sendEvMessage(conn, '
|
|
122
|
+
sendEvMessage(conn, 'msg', '请手动启动,启动ev录屏工具异常: ' + ex.message);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -177,7 +177,7 @@ function watchEvOutput(conn) {
|
|
|
177
177
|
var fileCreateTime = stats.ctime.getTime();
|
|
178
178
|
if (fileCreateTime > evConfig.startTime) {
|
|
179
179
|
log('录屏开始,文件已生成:', filePath);
|
|
180
|
-
sendEvMessage(conn, '
|
|
180
|
+
sendEvMessage(conn, 'msg', '录屏已开始,正在录制中');
|
|
181
181
|
}
|
|
182
182
|
} catch (ex) {
|
|
183
183
|
log('检查文件信息失败:', ex.message);
|
|
@@ -296,7 +296,7 @@ function processEvFile(conn, filePath) {
|
|
|
296
296
|
var fileName = path.basename(filePath);
|
|
297
297
|
var fileExt = path.extname(fileName);
|
|
298
298
|
var timestamp = new Date().getTime();
|
|
299
|
-
var qiniuFileName = '
|
|
299
|
+
var qiniuFileName = 'studyplug/' + timestamp + fileExt;
|
|
300
300
|
|
|
301
301
|
// 确定文件类型
|
|
302
302
|
var fileType = fileExt.toLowerCase() === '.mp4' ? 'video' : 'audio';
|