Commit 58b333604d0762bc8c5c6a9806e31f401f1528c7

Authored by 648540858
1 parent 073b6ace

修改错别字

src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java
@@ -553,7 +553,7 @@ public class MediaServerServiceImpl implements IMediaServerService { @@ -553,7 +553,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
553 logger.info("[ZLM] 正在设置 :{} -> {}:{}", 553 logger.info("[ZLM] 正在设置 :{} -> {}:{}",
554 mediaServerItem.getId(), mediaServerItem.getIp(), mediaServerItem.getHttpPort()); 554 mediaServerItem.getId(), mediaServerItem.getIp(), mediaServerItem.getHttpPort());
555 String protocol = sslEnabled ? "https" : "http"; 555 String protocol = sslEnabled ? "https" : "http";
556 - String hookPrex = String.format("%s://%s:%s/index/hook", protocol, mediaServerItem.getHookIp(), serverPort); 556 + String hookPrefix = String.format("%s://%s:%s/index/hook", protocol, mediaServerItem.getHookIp(), serverPort);
557 557
558 Map<String, Object> param = new HashMap<>(); 558 Map<String, Object> param = new HashMap<>();
559 param.put("api.secret",mediaServerItem.getSecret()); // -profile:v Baseline 559 param.put("api.secret",mediaServerItem.getSecret()); // -profile:v Baseline
@@ -562,21 +562,21 @@ public class MediaServerServiceImpl implements IMediaServerService { @@ -562,21 +562,21 @@ public class MediaServerServiceImpl implements IMediaServerService {
562 } 562 }
563 param.put("hook.enable","1"); 563 param.put("hook.enable","1");
564 param.put("hook.on_flow_report",""); 564 param.put("hook.on_flow_report","");
565 - param.put("hook.on_play",String.format("%s/on_play", hookPrex)); 565 + param.put("hook.on_play",String.format("%s/on_play", hookPrefix));
566 param.put("hook.on_http_access",""); 566 param.put("hook.on_http_access","");
567 - param.put("hook.on_publish", String.format("%s/on_publish", hookPrex)); 567 + param.put("hook.on_publish", String.format("%s/on_publish", hookPrefix));
568 param.put("hook.on_record_ts",""); 568 param.put("hook.on_record_ts","");
569 param.put("hook.on_rtsp_auth",""); 569 param.put("hook.on_rtsp_auth","");
570 param.put("hook.on_rtsp_realm",""); 570 param.put("hook.on_rtsp_realm","");
571 - param.put("hook.on_server_started",String.format("%s/on_server_started", hookPrex)); 571 + param.put("hook.on_server_started",String.format("%s/on_server_started", hookPrefix));
572 param.put("hook.on_shell_login",""); 572 param.put("hook.on_shell_login","");
573 - param.put("hook.on_stream_changed",String.format("%s/on_stream_changed", hookPrex));  
574 - param.put("hook.on_stream_none_reader",String.format("%s/on_stream_none_reader", hookPrex));  
575 - param.put("hook.on_stream_not_found",String.format("%s/on_stream_not_found", hookPrex));  
576 - param.put("hook.on_server_keepalive",String.format("%s/on_server_keepalive", hookPrex));  
577 - param.put("hook.on_send_rtp_stopped",String.format("%s/on_send_rtp_stopped", hookPrex));  
578 - param.put("hook.on_rtp_server_timeout",String.format("%s/on_rtp_server_timeout", hookPrex));  
579 - param.put("hook.on_record_mp4",String.format("%s/on_record_mp4", hookPrex)); 573 + param.put("hook.on_stream_changed",String.format("%s/on_stream_changed", hookPrefix));
  574 + param.put("hook.on_stream_none_reader",String.format("%s/on_stream_none_reader", hookPrefix));
  575 + param.put("hook.on_stream_not_found",String.format("%s/on_stream_not_found", hookPrefix));
  576 + param.put("hook.on_server_keepalive",String.format("%s/on_server_keepalive", hookPrefix));
  577 + param.put("hook.on_send_rtp_stopped",String.format("%s/on_send_rtp_stopped", hookPrefix));
  578 + param.put("hook.on_rtp_server_timeout",String.format("%s/on_rtp_server_timeout", hookPrefix));
  579 + param.put("hook.on_record_mp4",String.format("%s/on_record_mp4", hookPrefix));
580 param.put("hook.timeoutSec","20"); 580 param.put("hook.timeoutSec","20");
581 // 推流断开后可以在超时时间内重新连接上继续推流,这样播放器会接着播放。 581 // 推流断开后可以在超时时间内重新连接上继续推流,这样播放器会接着播放。
582 // 置0关闭此特性(推流断开会导致立即断开播放器) 582 // 置0关闭此特性(推流断开会导致立即断开播放器)