线程优化

This commit is contained in:
thinkgem
2020-05-12 15:15:19 +08:00
parent bff4fd8d79
commit 231de0bfc7
3 changed files with 10 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ public class BinaryUploader {
// 先截图
if (v.cutPic()){
// 开启进程,在转换视频文件
new Thread(new Runnable() {
Thread thread = new Thread("video-convert") {
@Override
public void run() {
try {
@@ -131,7 +131,9 @@ public class BinaryUploader {
e.printStackTrace();
}
}
}).start();
};
thread.setDaemon(true);
thread.start();
storageState.putInfo("url", ctx + PathFormat.format(savePath) + "." + v.getOutputFileExtension());
storageState.putInfo("type", "." + v.getOutputFileExtension());
storageState.putInfo("original", originFileName +"."+ v.getInputFileExtension());