zlm假离线恢复redis心跳信息

This commit is contained in:
648540858 2021-12-20 10:01:37 +08:00
parent 61ec292796
commit 76c17c6d30
2 changed files with 4 additions and 1 deletions

View File

@ -63,6 +63,9 @@ public class ZLMKeepliveTimeoutListener extends KeyExpirationEventMessageListene
JSONObject mediaServerConfig = zlmresTfulUtils.getMediaServerConfig(mediaServerItem); JSONObject mediaServerConfig = zlmresTfulUtils.getMediaServerConfig(mediaServerItem);
if (mediaServerConfig == null) { if (mediaServerConfig == null) {
publisher.zlmOfflineEventPublish(mediaServerId); publisher.zlmOfflineEventPublish(mediaServerId);
}else {
// 添加zlm信息
mediaServerService.updateMediaServerKeepalive(mediaServerId, mediaServerConfig);
} }
} }

View File

@ -76,5 +76,5 @@ public interface IMediaServerService {
MediaServerItem getDefaultMediaServer(); MediaServerItem getDefaultMediaServer();
void updateMediaServerKeepalive(String zlmServerConfig, JSONObject data); void updateMediaServerKeepalive(String mediaServerId, JSONObject data);
} }