From bc2b288547d91569a6178e000694793ba6a4eb91 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: Mon, 26 Apr 2021 13:11:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E5=8A=A0=E5=85=A5=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E7=9A=84onvif=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 3 +++ .../com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 2 +- .../com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index f8a8b532..7f19522c 100644 --- a/pom.xml +++ b/pom.xml @@ -202,6 +202,9 @@ org.springframework.boot spring-boot-maven-plugin + + true + org.apache.maven.plugins diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java index c9e7a2fd..fe84f70d 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java @@ -251,7 +251,7 @@ public class ZLMHttpHookListener { JSONArray tracks = json.getJSONArray("tracks"); boolean regist = json.getBoolean("regist"); if (tracks != null) { - logger.info("[stream: " + streamId + "]on_stream_changed->>" + schema); + logger.info("[stream: " + streamId + "] on_stream_changed->>" + schema); } if ("rtmp".equals(schema)){ if ("rtp".equals(app) && !regist ) { diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java index 97db56c9..ffe91d29 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java @@ -194,7 +194,7 @@ public class ZLMRTPServerFactory { logger.error("RTP推流失败: 请检查ZLM服务"); } else if (jsonObject.getInteger("code") == 0) { result= true; - logger.error("RTP推流请求成功,本地推流端口:" + jsonObject.getString("local_port")); + logger.info("RTP推流请求成功,本地推流端口:" + jsonObject.getString("local_port")); } else { logger.error("RTP推流失败: " + jsonObject.getString("msg")); } @@ -238,7 +238,7 @@ public class ZLMRTPServerFactory { logger.error("停止RTP推流失败: 请检查ZLM服务"); } else if (jsonObject.getInteger("code") == 0) { result= true; - logger.error("停止RTP推流成功"); + logger.info("停止RTP推流成功"); } else { logger.error("停止RTP推流失败: " + jsonObject.getString("msg")); }