|
|
@ -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<String, Object> 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)); |
|
|
|