From 858093fe9a1c23d2be22ecb75ceab1139931454e Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: 星期三, 09 六月 2021 10:22:41 +0800 Subject: [PATCH] 国标级联兼容大华NVR --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 7 ++++--- 1 files 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 0908133..731722f 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 @@ -55,6 +55,9 @@ private IRedisCatchStorage redisCatchStorage; @Autowired + private ZLMRESTfulUtils zlmresTfulUtils; + + @Autowired private ZLMServerManger zlmServerManger; @Autowired @@ -335,8 +338,7 @@ 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 @@ } } - } } -- Gitblit v1.8.0