增加配置将国标录像与其他录像分开
parent
5bcd8495e0
commit
0b6587b1ad
|
@ -23,7 +23,9 @@ public class UserSetup {
|
||||||
|
|
||||||
private Boolean interfaceAuthentication = Boolean.TRUE;
|
private Boolean interfaceAuthentication = Boolean.TRUE;
|
||||||
|
|
||||||
private Boolean recordPushLive = Boolean.FALSE;
|
private Boolean recordPushLive = Boolean.TRUE;
|
||||||
|
|
||||||
|
private Boolean recordSip = Boolean.TRUE;
|
||||||
|
|
||||||
private Boolean logInDatebase = Boolean.TRUE;
|
private Boolean logInDatebase = Boolean.TRUE;
|
||||||
|
|
||||||
|
@ -134,4 +136,12 @@ public class UserSetup {
|
||||||
public void setRedisConfig(Boolean redisConfig) {
|
public void setRedisConfig(Boolean redisConfig) {
|
||||||
this.redisConfig = redisConfig;
|
this.redisConfig = redisConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean getRecordSip() {
|
||||||
|
return recordSip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRecordSip(Boolean recordSip) {
|
||||||
|
this.recordSip = recordSip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,6 @@ public class ZLMHttpHookListener {
|
||||||
ret.put("code", 0);
|
ret.put("code", 0);
|
||||||
ret.put("msg", "success");
|
ret.put("msg", "success");
|
||||||
ret.put("enableHls", true);
|
ret.put("enableHls", true);
|
||||||
ret.put("enableMP4", userSetup.isRecordPushLive());
|
|
||||||
String mediaServerId = json.getString("mediaServerId");
|
String mediaServerId = json.getString("mediaServerId");
|
||||||
ZLMHttpHookSubscribe.Event subscribe = this.subscribe.getSubscribe(ZLMHttpHookSubscribe.HookType.on_publish, json);
|
ZLMHttpHookSubscribe.Event subscribe = this.subscribe.getSubscribe(ZLMHttpHookSubscribe.HookType.on_publish, json);
|
||||||
if (subscribe != null) {
|
if (subscribe != null) {
|
||||||
|
@ -200,6 +199,12 @@ public class ZLMHttpHookListener {
|
||||||
}
|
}
|
||||||
String app = json.getString("app");
|
String app = json.getString("app");
|
||||||
String stream = json.getString("stream");
|
String stream = json.getString("stream");
|
||||||
|
if ("rtp".equals(app)) {
|
||||||
|
ret.put("enableMP4", userSetup.getRecordSip());
|
||||||
|
}else {
|
||||||
|
ret.put("enableMP4", userSetup.isRecordPushLive());
|
||||||
|
}
|
||||||
|
ret.put("enableMP4", userSetup.isRecordPushLive());
|
||||||
StreamInfo streamInfo = redisCatchStorage.queryPlaybackByStreamId(stream);
|
StreamInfo streamInfo = redisCatchStorage.queryPlaybackByStreamId(stream);
|
||||||
|
|
||||||
// 录像回放时不进行录像下载
|
// 录像回放时不进行录像下载
|
||||||
|
|
|
@ -168,6 +168,8 @@ user-settings:
|
||||||
- /api/v1/**
|
- /api/v1/**
|
||||||
# 推流直播是否录制
|
# 推流直播是否录制
|
||||||
record-push-live: true
|
record-push-live: true
|
||||||
|
# 国标是否录制
|
||||||
|
record-sip: true
|
||||||
# 是否将日志存储进数据库
|
# 是否将日志存储进数据库
|
||||||
logInDatebase: true
|
logInDatebase: true
|
||||||
# 第三方匹配,用于从stream钟获取有效信息
|
# 第三方匹配,用于从stream钟获取有效信息
|
||||||
|
|
Loading…
Reference in New Issue