Commit 11d40d3e220a3f12453136fedbbdc99f93c6c1b1

Authored by 648540858
1 parent 28e5c1ae

#396

src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -188,7 +188,7 @@ public class ZLMHttpHookListener { @@ -188,7 +188,7 @@ public class ZLMHttpHookListener {
188 JSONObject ret = new JSONObject(); 188 JSONObject ret = new JSONObject();
189 ret.put("code", 0); 189 ret.put("code", 0);
190 ret.put("msg", "success"); 190 ret.put("msg", "success");
191 - ret.put("enableHls", true); 191 + ret.put("enable_hls", true);
192 String mediaServerId = json.getString("mediaServerId"); 192 String mediaServerId = json.getString("mediaServerId");
193 ZLMHttpHookSubscribe.Event subscribe = this.subscribe.getSubscribe(ZLMHttpHookSubscribe.HookType.on_publish, json); 193 ZLMHttpHookSubscribe.Event subscribe = this.subscribe.getSubscribe(ZLMHttpHookSubscribe.HookType.on_publish, json);
194 if (subscribe != null) { 194 if (subscribe != null) {
@@ -203,9 +203,9 @@ public class ZLMHttpHookListener { @@ -203,9 +203,9 @@ public class ZLMHttpHookListener {
203 String app = json.getString("app"); 203 String app = json.getString("app");
204 String stream = json.getString("stream"); 204 String stream = json.getString("stream");
205 if ("rtp".equals(app)) { 205 if ("rtp".equals(app)) {
206 - ret.put("enableMP4", userSetup.getRecordSip()); 206 + ret.put("enable_mp4", userSetup.getRecordSip());
207 }else { 207 }else {
208 - ret.put("enableMP4", userSetup.isRecordPushLive()); 208 + ret.put("enable_mp4", userSetup.isRecordPushLive());
209 } 209 }
210 List<SsrcTransaction> ssrcTransactionForAll = sessionManager.getSsrcTransactionForAll(null, null, null, stream); 210 List<SsrcTransaction> ssrcTransactionForAll = sessionManager.getSsrcTransactionForAll(null, null, null, stream);
211 if (ssrcTransactionForAll != null && ssrcTransactionForAll.size() == 1) { 211 if (ssrcTransactionForAll != null && ssrcTransactionForAll.size() == 1) {