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); }