From 3e02e496f6c3e4d2fae73b1d42a51d0ce35795dc Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期日, 24 三月 2024 15:51:19 +0800
Subject: [PATCH] 支持设置abl配置信息

---
 src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMMediaServerStatusManger.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMMediaServerStatusManger.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMMediaServerStatusManger.java
index b2bfaf1..6d63329 100644
--- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMMediaServerStatusManger.java
+++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMMediaServerStatusManger.java
@@ -193,10 +193,12 @@
                     }
                 }
                 if (config != null) {
+                    initPort(mediaServerItem, config);
                     setZLMConfig(mediaServerItem, "0".equals(config.getHookEnable())
                             || !Objects.equals(mediaServerItem.getHookAliveInterval(), config.getHookAliveInterval()));
                 }
             }
+            mediaServerService.update(mediaServerItem);
         }
         // 璁剧疆涓ゆ蹇冭烦鏈敹鍒板垯璁や负zlm绂荤嚎
         String key = "zlm-keepalive-" + mediaServerItem.getId();
@@ -210,6 +212,7 @@
         }, (int)(mediaServerItem.getHookAliveInterval() * 2 * 1000));
     }
     private void initPort(MediaServer mediaServerItem, ZLMServerConfig zlmServerConfig) {
+        // 绔彛鍙細浠庨厤缃腑璇诲彇涓�娆★紝涓�鏃﹁嚜宸遍厤缃垨鑰呰鍙栬繃浜嗗皢涓嶅湪閰嶇疆
         if (mediaServerItem.getHttpSSlPort() == 0) {
             mediaServerItem.setHttpSSlPort(zlmServerConfig.getHttpSSLport());
         }

--
Gitblit v1.8.0