新增根据 指定时间范围的 recordInfo 查询, 预下载视频文件到本地指定路径

This commit is contained in:
shikong 2024-02-06 15:57:51 +08:00
parent 70019451d2
commit d9da9960dc

View File

@ -77,6 +77,7 @@ public class VideoCacheManager {
return CompletableFuture.supplyAsync(()->{
File realFile = Paths.get(deviceProxyConfig.getPreDownloadForRecordInfo().getCachePath(),fileName(deviceCode, startTime, endTime) + ".mp4").toFile();
if(realFile.exists()){
log.info("文件 {} 已缓存, 直接返回", realFile.getAbsolutePath());
return JsonResponse.success(realFile.getAbsolutePath());
}