线程优化
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user