From 2e403fc5277c206eb3c8f4574967effe1de1528e Mon Sep 17 00:00:00 2001 From: lawrencehj <1934378145@qq.com> Date: Sun, 14 Mar 2021 21:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=AC=E5=9C=B0=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=92=AD=E6=94=BE=E6=97=B6=E4=B8=8A=E7=BA=A7=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=82=B9=E6=92=AD=E5=90=8C=E4=B8=80=E6=B5=81=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/vmanager/service/impl/PlayServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/service/impl/PlayServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/vmanager/service/impl/PlayServiceImpl.java index db1e345c..376040a3 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/service/impl/PlayServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/service/impl/PlayServiceImpl.java @@ -86,6 +86,9 @@ public class PlayServiceImpl implements IPlayService { msg.setId(DeferredResultHolder.CALLBACK_CMD_PlAY + uuid); msg.setData(JSON.toJSONString(streamInfo)); resultHolder.invokeResult(msg); + if (hookEvent != null) { + hookEvent.response(JSONObject.parseObject(JSON.toJSONString(streamInfo))); + } } else { redisCatchStorage.stopPlay(streamInfo); storager.stopPlay(streamInfo.getDeviceID(), streamInfo.getChannelId());