优化录像合并下载

pull/1288/head
648540858 2024-01-22 09:46:03 +08:00
parent 9a89cf81b8
commit 07729fbe49
2 changed files with 1 additions and 7 deletions

View File

@ -125,10 +125,8 @@ public class CloudRecordServiceImpl implements ICloudRecordService {
endTimeStamp = DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(endTime); endTimeStamp = DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(endTime);
} }
List<MediaServerItem> mediaServers = new ArrayList<>();
mediaServers.add(mediaServerItem);
// 检索相关的录像文件 // 检索相关的录像文件
List<String> filePathList = cloudRecordServiceMapper.queryRecordFilePathList(app, stream, startTimeStamp, endTimeStamp, callId, mediaServers); List<String> filePathList = cloudRecordServiceMapper.queryRecordFilePathList(app, stream, startTimeStamp, endTimeStamp, callId, null);
if (filePathList == null || filePathList.isEmpty()) { if (filePathList == null || filePathList.isEmpty()) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "未检索到视频文件"); throw new ControllerException(ErrorCode.ERROR100.getCode(), "未检索到视频文件");
} }

View File

@ -164,10 +164,6 @@ public class CloudRecordController {
@RequestParam(required = false) String callId, @RequestParam(required = false) String callId,
@RequestParam(required = false) String remoteHost @RequestParam(required = false) String remoteHost
){ ){
System.out.println(request.getScheme());
System.out.println(request.getLocalAddr());
System.out.println(request.getRemoteAddr());
System.out.println(request.getRequestURI());
MediaServerItem mediaServerItem; MediaServerItem mediaServerItem;
if (mediaServerId == null) { if (mediaServerId == null) {
mediaServerItem = mediaServerService.getDefaultMediaServer(); mediaServerItem = mediaServerService.getDefaultMediaServer();