修复bug

This commit is contained in:
64850858 2021-06-04 17:30:23 +08:00
parent 1b677c6dc7
commit a209ba77ea

View File

@ -44,7 +44,7 @@ public class ZLMRunner implements CommandLineRunner {
@Value("${server.port}") @Value("${server.port}")
private String serverPort; private String serverPort;
@Value("${server.ssl.enabled}") @Value("${server.ssl.enabled:false}")
private boolean sslEnabled; private boolean sslEnabled;
private boolean startGetMedia = false; private boolean startGetMedia = false;
@ -115,7 +115,7 @@ public class ZLMRunner implements CommandLineRunner {
} }
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
param.put("api.secret",mediaConfig.getSecret()); // -profile:v Baseline 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.enable","1");
param.put("hook.on_flow_report",""); param.put("hook.on_flow_report","");
param.put("hook.on_play",String.format("%s/on_play", hookPrex)); param.put("hook.on_play",String.format("%s/on_play", hookPrex));