Browse Source

zlm假离线恢复redis心跳信息

pull/295/head
648540858 3 years ago
parent
commit
2385f4b30c
  1. 3
      src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java
  2. 2
      src/main/java/com/genersoft/iot/vmp/service/IMediaServerService.java

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

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

Loading…
Cancel
Save