|
@@ -47,6 +47,7 @@ public class CameraUtil {
|
|
|
|
|
|
private static final ExecutorService executor = Executors.newFixedThreadPool(20);
|
|
|
private static String historyUrl;
|
|
|
+ private static String recordUrl;
|
|
|
private static String ffmpegPath;
|
|
|
private static String filePath;
|
|
|
private static String transcribeFilePath;
|
|
@@ -418,15 +419,8 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.flv
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @PostConstruct
|
|
|
- public void init() {
|
|
|
- historyUrl = caneraConfig.getHistoryUrl();
|
|
|
- ffmpegPath = caneraConfig.getFfmpegPath();
|
|
|
- filePath = caneraConfig.getFilePath();
|
|
|
- transcribeFilePath = caneraConfig.getTranscribeFilePath();
|
|
|
- webUrl = caneraConfig.getWebUrl();
|
|
|
- bakUrl = caneraConfig.getBakUrl();
|
|
|
- cUtil = cmdCameraUtil;
|
|
|
+ public static List<Map<String, Object>> getRecordList(String channel, Date startTm, Date endTm) {
|
|
|
+ return filterRecordList(channel, startTm, endTm, filePath, recordUrl + "/");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -676,9 +670,16 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.flv
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- public static List<Map<String, Object>> getRecordList(String channel, Date startTm, Date endTm) {
|
|
|
- return filterRecordList(channel, startTm, endTm, filePath, webUrl + "/webRecord/");
|
|
|
+ @PostConstruct
|
|
|
+ public void init() {
|
|
|
+ historyUrl = caneraConfig.getHistoryUrl();
|
|
|
+ ffmpegPath = caneraConfig.getFfmpegPath();
|
|
|
+ filePath = caneraConfig.getFilePath();
|
|
|
+ transcribeFilePath = caneraConfig.getTranscribeFilePath();
|
|
|
+ webUrl = caneraConfig.getWebUrl();
|
|
|
+ bakUrl = caneraConfig.getBakUrl();
|
|
|
+ recordUrl = caneraConfig.getBakUrl();
|
|
|
+ cUtil = cmdCameraUtil;
|
|
|
}
|
|
|
|
|
|
|