优化录像路径的设置

This commit is contained in:
648540858
2024-01-10 11:14:49 +08:00
parent 1af6324a09
commit 0c10c77a56
3 changed files with 4 additions and 2 deletions

View File

@@ -591,7 +591,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
param.put("rtp_proxy.port_range", mediaServerItem.getRtpPortRange().replace(",", "-"));
}
if (mediaServerItem.getRecordPath() != null) {
if (!ObjectUtils.isEmpty(mediaServerItem.getRecordPath())) {
File recordPathFile = new File(mediaServerItem.getRecordPath());
param.put("protocol.mp4_save_path", recordPathFile.getParentFile().getPath());
param.put("protocol.downloadRoot", recordPathFile.getParentFile().getPath());