pull/399/head
parent
28e5c1ae05
commit
11d40d3e22
|
@ -188,7 +188,7 @@ public class ZLMHttpHookListener {
|
||||||
JSONObject ret = new JSONObject();
|
JSONObject ret = new JSONObject();
|
||||||
ret.put("code", 0);
|
ret.put("code", 0);
|
||||||
ret.put("msg", "success");
|
ret.put("msg", "success");
|
||||||
ret.put("enableHls", true);
|
ret.put("enable_hls", true);
|
||||||
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) {
|
||||||
|
@ -203,9 +203,9 @@ 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)) {
|
if ("rtp".equals(app)) {
|
||||||
ret.put("enableMP4", userSetup.getRecordSip());
|
ret.put("enable_mp4", userSetup.getRecordSip());
|
||||||
}else {
|
}else {
|
||||||
ret.put("enableMP4", userSetup.isRecordPushLive());
|
ret.put("enable_mp4", userSetup.isRecordPushLive());
|
||||||
}
|
}
|
||||||
List<SsrcTransaction> ssrcTransactionForAll = sessionManager.getSsrcTransactionForAll(null, null, null, stream);
|
List<SsrcTransaction> ssrcTransactionForAll = sessionManager.getSsrcTransactionForAll(null, null, null, stream);
|
||||||
if (ssrcTransactionForAll != null && ssrcTransactionForAll.size() == 1) {
|
if (ssrcTransactionForAll != null && ssrcTransactionForAll.size() == 1) {
|
||||||
|
|
Loading…
Reference in New Issue