新增根据 指定时间范围的 recordInfo 查询, 预下载视频文件到本地指定路径
This commit is contained in:
parent
70019451d2
commit
d9da9960dc
@ -77,6 +77,7 @@ public class VideoCacheManager {
|
|||||||
return CompletableFuture.supplyAsync(()->{
|
return CompletableFuture.supplyAsync(()->{
|
||||||
File realFile = Paths.get(deviceProxyConfig.getPreDownloadForRecordInfo().getCachePath(),fileName(deviceCode, startTime, endTime) + ".mp4").toFile();
|
File realFile = Paths.get(deviceProxyConfig.getPreDownloadForRecordInfo().getCachePath(),fileName(deviceCode, startTime, endTime) + ".mp4").toFile();
|
||||||
if(realFile.exists()){
|
if(realFile.exists()){
|
||||||
|
log.info("文件 {} 已缓存, 直接返回", realFile.getAbsolutePath());
|
||||||
return JsonResponse.success(realFile.getAbsolutePath());
|
return JsonResponse.success(realFile.getAbsolutePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user