From a209ba77ead73c273c75d0638a3bae2ea8626765 Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: Fri, 4 Jun 2021 17:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 1dabc4ff..e255bd3f 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 @@ -44,7 +44,7 @@ public class ZLMRunner implements CommandLineRunner { @Value("${server.port}") private String serverPort; - @Value("${server.ssl.enabled}") + @Value("${server.ssl.enabled:false}") private boolean sslEnabled; private boolean startGetMedia = false; @@ -115,7 +115,7 @@ public class ZLMRunner implements CommandLineRunner { } Map param = new HashMap<>(); param.put("api.secret",mediaConfig.getSecret()); // -profile:v Baseline - param.put("ffmpeg.cmd","%s -fflags nobuffer -rtsp_transport tcp -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s"); +// param.put("ffmpeg.cmd","%s -fflags nobuffer -rtsp_transport tcp -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s"); param.put("hook.enable","1"); param.put("hook.on_flow_report",""); param.put("hook.on_play",String.format("%s/on_play", hookPrex));