From 230916e5303a4732ab0b8e78bd87d9c4a7bb6772 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: Thu, 27 May 2021 09:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BD=95=E5=83=8F=E5=9B=9E?= =?UTF-8?q?=E6=94=BE=E6=9C=AA=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E7=AD=89?= =?UTF-8?q?=E5=BE=85=E7=BC=96=E7=A0=81=E5=AF=BC=E8=87=B4=E7=9A=84=E5=9B=9E?= =?UTF-8?q?=E6=94=BE=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java index ca85e3c0..630d0187 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java @@ -476,9 +476,9 @@ public class SIPCommander implements ISIPCommander { subscribeKey.put("app", "rtp"); subscribeKey.put("stream", streamId); subscribeKey.put("regist", true); - + logger.debug("录像回放添加订阅,订阅内容:" + subscribeKey.toString()); subscribe.addSubscribe(ZLMHttpHookSubscribe.HookType.on_stream_changed, subscribeKey, json->{ - if (json.getJSONArray("tracks") == null) return; + if (waitTrack && json.getJSONArray("tracks") == null) return; event.response(json); subscribe.removeSubscribe(ZLMHttpHookSubscribe.HookType.on_stream_changed, subscribeKey); });