修复录像路径设置错误
parent
964d55431f
commit
8965f95365
|
@ -116,7 +116,6 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
private ThreadPoolTaskExecutor taskExecutor;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 初始化
|
||||
*/
|
||||
|
@ -292,6 +291,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
|
||||
/**
|
||||
* 获取单个zlm服务器
|
||||
*
|
||||
* @param mediaServerId 服务id
|
||||
* @return MediaServerItem
|
||||
*/
|
||||
|
@ -369,6 +369,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
|
||||
/**
|
||||
* 处理zlm上线
|
||||
*
|
||||
* @param zlmServerConfig zlm上线携带的参数
|
||||
*/
|
||||
@Override
|
||||
|
@ -515,6 +516,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
|
||||
/**
|
||||
* 获取负载最低的节点
|
||||
*
|
||||
* @return MediaServerItem
|
||||
*/
|
||||
@Override
|
||||
|
@ -558,6 +560,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
|
||||
/**
|
||||
* 对zlm服务器进行基础配置
|
||||
*
|
||||
* @param mediaServerItem 服务ID
|
||||
* @param restart 是否重启zlm
|
||||
*/
|
||||
|
@ -609,8 +612,11 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
|
||||
if (userSetting.getRecordPath() != null) {
|
||||
File recordPathFile = new File(userSetting.getRecordPath());
|
||||
File mp4SavePathFile = recordPathFile.getParentFile().getAbsoluteFile();
|
||||
param.put("protocol.mp4_save_path", mp4SavePathFile.getAbsoluteFile());
|
||||
// File mp4SavePathFile = recordPathFile.getParentFile().getAbsoluteFile();
|
||||
// param.put("protocol.mp4_save_path", mp4SavePathFile.getAbsoluteFile());
|
||||
// 如果使用mp4SavePathFile.getAbsoluteFile() 当wvp部署在windows服务器时会添加盘符
|
||||
// 导致ZLM设置mp4_save_path路径时出错
|
||||
param.put("protocol.mp4_save_path", userSetting.getRecordPath());
|
||||
param.put("record.appName", recordPathFile.getName());
|
||||
}
|
||||
|
||||
|
@ -683,7 +689,8 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
if (response != null) {
|
||||
result = true;
|
||||
}
|
||||
} catch (Exception e) {}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -694,6 +701,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
String key = VideoManagerConstants.MEDIA_SERVER_PREFIX + userSetting.getServerId() + "_" + id;
|
||||
redisTemplate.delete(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDb(String id) {
|
||||
//同步删除数据库中的数据
|
||||
|
|
Loading…
Reference in New Issue