From c56258ba8ae5e1975eb4cf7daa220a4c748b1115 Mon Sep 17 00:00:00 2001 From: ljm <1271952916@qq.com> Date: 星期二, 01 十一月 2022 17:25:47 +0800 Subject: [PATCH] 【同步设备通道】第一次收到同步请求应该将通道放入 不然会造成通道数量不一致 同步时也会漏掉第一个通道 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 6 +++--- 1 files changed, 3 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 bde4f82..52ca25a 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 @@ -521,7 +521,7 @@ if (sendRtpItem.getApp().equals(app)) { String platformId = sendRtpItem.getPlatformId(); ParentPlatform platform = storager.queryParentPlatByServerGBId(platformId); - Device device = deviceService.queryDevice(platformId); + Device device = deviceService.getDevice(platformId); try { if (platform != null) { @@ -581,7 +581,7 @@ } } } - Device device = deviceService.queryDevice(streamInfoForPlayCatch.getDeviceID()); + Device device = deviceService.getDevice(streamInfoForPlayCatch.getDeviceID()); if (device != null) { try { cmder.streamByeCmd(device, streamInfoForPlayCatch.getChannelId(), @@ -601,7 +601,7 @@ if (streamInfoForPlayBackCatch.isPause()) { ret.put("close", false); }else { - Device device = deviceService.queryDevice(streamInfoForPlayBackCatch.getDeviceID()); + Device device = deviceService.getDevice(streamInfoForPlayBackCatch.getDeviceID()); if (device != null) { try { cmder.streamByeCmd(device,streamInfoForPlayBackCatch.getChannelId(), -- Gitblit v1.8.0