Commit 89cdde35 authored by yanxia54's avatar yanxia54

异常信息优化

parent 86500002
......@@ -179,17 +179,11 @@ public class HlsDownloader {
}
// todo: 输出文件,需要封装成函数
String fileOutPath = rootPath + File.separator + fileName;
// 订单输出文件流
try (FileOutputStream fileOutputStream = new FileOutputStream(new File(fileOutPath))) {
// 按照顺序遍历文件缓存
int size = keyFileMap.size();
for (int i = 0; i < size; i++) {
// 获取当前的 ts 文件
File file = new File(keyFileMap.get(i));
if (!file.exists()) {
continue;
}
// 获取第一个 ts 文件
File file = new File(keyFileMap.get(0));
if (file.exists()) {
// 读取文件
FileInputStream fis = new FileInputStream(file);
// 定义文件缓存
......@@ -203,7 +197,6 @@ public class HlsDownloader {
}
}
}
return fileName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment