chenjialing
2022-06-17 39a5c8e2cf18cab6469bc0204d2b3c4d7e9e2935
src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMStatusEventListener.java
@@ -39,18 +39,17 @@
   @Async
   @EventListener
   public void onApplicationEvent(ZLMOnlineEvent event) {
      logger.info("【ZLM上线】ID:" + event.getMediaServerId());
      logger.info("[ZLM] 上线 ID:" + event.getMediaServerId());
      streamPushService.zlmServerOnline(event.getMediaServerId());
      streamProxyService.zlmServerOnline(event.getMediaServerId());
      playService.zlmServerOnline(event.getMediaServerId());
   }
   @Async
   @EventListener
   public void onApplicationEvent(ZLMOfflineEvent event) {
      logger.info("ZLM离线事件触发,ID:" + event.getMediaServerId());
      logger.info("[ZLM] 离线,ID:" + event.getMediaServerId());
      // 处理ZLM离线
      mediaServerService.zlmServerOffline(event.getMediaServerId());
      streamProxyService.zlmServerOffline(event.getMediaServerId());