From 2385f4b30cb8837ce4bd078a83caf23218e2c4a8 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Mon, 20 Dec 2021 10:01:37 +0800 Subject: [PATCH] =?UTF-8?q?zlm=E5=81=87=E7=A6=BB=E7=BA=BF=E6=81=A2?= =?UTF-8?q?=E5=A4=8Dredis=E5=BF=83=E8=B7=B3=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java | 3 +++ .../com/genersoft/iot/vmp/service/IMediaServerService.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java index 71b07f83..bf10ee90 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java @@ -63,6 +63,9 @@ public class ZLMKeepliveTimeoutListener extends KeyExpirationEventMessageListene JSONObject mediaServerConfig = zlmresTfulUtils.getMediaServerConfig(mediaServerItem); if (mediaServerConfig == null) { publisher.zlmOfflineEventPublish(mediaServerId); + }else { + // 添加zlm信息 + mediaServerService.updateMediaServerKeepalive(mediaServerId, mediaServerConfig); } } diff --git a/src/main/java/com/genersoft/iot/vmp/service/IMediaServerService.java b/src/main/java/com/genersoft/iot/vmp/service/IMediaServerService.java index 56ffbf0a..41c59aa9 100644 --- a/src/main/java/com/genersoft/iot/vmp/service/IMediaServerService.java +++ b/src/main/java/com/genersoft/iot/vmp/service/IMediaServerService.java @@ -76,5 +76,5 @@ public interface IMediaServerService { MediaServerItem getDefaultMediaServer(); - void updateMediaServerKeepalive(String zlmServerConfig, JSONObject data); + void updateMediaServerKeepalive(String mediaServerId, JSONObject data); }