Commit 2385f4b30cb8837ce4bd078a83caf23218e2c4a8
1 parent
22efd0f5
zlm假离线恢复redis心跳信息
Showing
2 changed files
with
4 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java
| @@ -63,6 +63,9 @@ public class ZLMKeepliveTimeoutListener extends KeyExpirationEventMessageListene | @@ -63,6 +63,9 @@ public class ZLMKeepliveTimeoutListener extends KeyExpirationEventMessageListene | ||
| 63 | JSONObject mediaServerConfig = zlmresTfulUtils.getMediaServerConfig(mediaServerItem); | 63 | JSONObject mediaServerConfig = zlmresTfulUtils.getMediaServerConfig(mediaServerItem); |
| 64 | if (mediaServerConfig == null) { | 64 | if (mediaServerConfig == null) { |
| 65 | publisher.zlmOfflineEventPublish(mediaServerId); | 65 | publisher.zlmOfflineEventPublish(mediaServerId); |
| 66 | + }else { | ||
| 67 | + // 添加zlm信息 | ||
| 68 | + mediaServerService.updateMediaServerKeepalive(mediaServerId, mediaServerConfig); | ||
| 66 | } | 69 | } |
| 67 | 70 | ||
| 68 | } | 71 | } |
src/main/java/com/genersoft/iot/vmp/service/IMediaServerService.java
| @@ -76,5 +76,5 @@ public interface IMediaServerService { | @@ -76,5 +76,5 @@ public interface IMediaServerService { | ||
| 76 | 76 | ||
| 77 | MediaServerItem getDefaultMediaServer(); | 77 | MediaServerItem getDefaultMediaServer(); |
| 78 | 78 | ||
| 79 | - void updateMediaServerKeepalive(String zlmServerConfig, JSONObject data); | 79 | + void updateMediaServerKeepalive(String mediaServerId, JSONObject data); |
| 80 | } | 80 | } |