648540858
2022-02-20 0b6587b1ad7371e993904c1b7f4baa67e3495bf4
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -186,7 +186,6 @@
      ret.put("code", 0);
      ret.put("msg", "success");
      ret.put("enableHls", true);
      ret.put("enableMP4", userSetup.isRecordPushLive());
      String mediaServerId = json.getString("mediaServerId");
      ZLMHttpHookSubscribe.Event subscribe = this.subscribe.getSubscribe(ZLMHttpHookSubscribe.HookType.on_publish, json);
      if (subscribe != null) {
@@ -200,6 +199,12 @@
      }
       String app = json.getString("app");
       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);
      // 录像回放时不进行录像下载