From 5e598f7debaea230720d2d27b7baac680410fb13 Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: Mon, 7 Jun 2021 17:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8E=A5=E5=8F=A3=E9=89=B4?= =?UTF-8?q?=E6=9D=83=E4=B8=8E=E8=87=AA=E5=8A=A8=E4=B8=80=E8=B5=B7=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=8F=AF=E4=BB=A5=E5=AE=8C=E6=88=90=E5=8D=95=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 0908133c..731722f3 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 @@ -54,6 +54,9 @@ public class ZLMHttpHookListener { @Autowired private IRedisCatchStorage redisCatchStorage; + @Autowired + private ZLMRESTfulUtils zlmresTfulUtils; + @Autowired private ZLMServerManger zlmServerManger; @@ -335,8 +338,7 @@ public class ZLMHttpHookListener { if (userSetup.isAutoApplyPlay()) { String app = json.getString("app"); String streamId = json.getString("stream"); - StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId); - if ("rtp".equals(app) && streamId.contains("gb_play") && streamInfo == null) { + if ("rtp".equals(app) && streamId.contains("gb_play") ) { String[] s = streamId.split("_"); if (s.length == 4) { String deviceId = s[2]; @@ -351,7 +353,6 @@ public class ZLMHttpHookListener { } } - } }