From 377f0f2c8231df27c0d385f3e2a8bcc4bec547de Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: 星期二, 08 六月 2021 18:44:15 +0800 Subject: [PATCH] 提高注册兼容性, 修复sql兼容mysql --- 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