From 0acf13445a2e3120f3d3599238401c9f2885d711 Mon Sep 17 00:00:00 2001 From: lawrencehj <1934378145@qq.com> Date: 星期三, 23 六月 2021 16:21:12 +0800 Subject: [PATCH] 改为fmp4截图 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java index d622101..f9171c3 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java @@ -4,10 +4,7 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.genersoft.iot.vmp.conf.MediaConfig; -import com.genersoft.iot.vmp.conf.SipConfig; import com.genersoft.iot.vmp.media.zlm.dto.StreamProxyItem; -import com.genersoft.iot.vmp.storager.IRedisCatchStorage; -//import com.genersoft.iot.vmp.storager.IVideoManagerStorager; import com.genersoft.iot.vmp.storager.IVideoManagerStorager; import com.genersoft.iot.vmp.service.IStreamProxyService; import org.slf4j.Logger; @@ -17,7 +14,6 @@ import org.springframework.boot.CommandLineRunner; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; import java.util.HashMap; import java.util.List; @@ -33,13 +29,7 @@ private IVideoManagerStorager storager; @Autowired - private IRedisCatchStorage redisCatchStorage; - - @Autowired private MediaConfig mediaConfig; - - @Autowired - private SipConfig sipConfig; @Value("${server.port}") private String serverPort; @@ -106,7 +96,6 @@ private void saveZLMConfig() { logger.info("璁剧疆zlm..."); - if (StringUtils.isEmpty(mediaConfig.getHookIp())) mediaConfig.setHookIp(sipConfig.getSipIp()); String protocol = sslEnabled ? "https" : "http"; String hookPrex = String.format("%s://%s:%s/index/hook", protocol, mediaConfig.getHookIp(), serverPort); String recordHookPrex = null; @@ -149,7 +138,7 @@ logger.info( "[ id: " + zlmServerConfig.getGeneralMediaServerId() + "] zlm鎺ュ叆鎴愬姛..."); // 鍏抽棴寰幆鑾峰彇zlm閰嶇疆 startGetMedia = false; - if (mediaConfig.getAutoConfig()) saveZLMConfig(); + if (mediaConfig.isAutoConfig()) saveZLMConfig(); zlmServerManger.updateServerCatch(zlmServerConfig); // 娓呯┖鎵�鏈塻ession -- Gitblit v1.8.0