From 45c5e912a5206847c2deef51a6ebbee819756e8a Mon Sep 17 00:00:00 2001 From: htjcAdmin Date: Thu, 10 Apr 2025 14:12:43 +0800 Subject: [PATCH] =?UTF-8?q?/*/video/rtspurl/v1.0=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=9A=84rtsp=E6=B5=8B=E8=AF=95=E6=B5=81=E9=80=9A=E8=BF=87nacos?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E3=80=82*/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/IvsServerController.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/inspect/simulator/controller/IvsServerController.java b/src/main/java/com/inspect/simulator/controller/IvsServerController.java index c2cbbc1..d4c46ce 100644 --- a/src/main/java/com/inspect/simulator/controller/IvsServerController.java +++ b/src/main/java/com/inspect/simulator/controller/IvsServerController.java @@ -41,6 +41,10 @@ public class IvsServerController { @Value("${platform.url}") private String platFormUrl; + + @Value("${rtsp.testUrl:rtsp://admin:Zenap_qweasdzxc@192.168.1.217:554/h264/ch3/main/av_stream}") + private String rtspTestUrl; + public IvsServerController(AnalysisRemoteService analysisRemoteService) { this.analysisRemoteService = analysisRemoteService; } @@ -86,16 +90,15 @@ public class IvsServerController { @PostMapping({"/video/rtspurl/v1.0"}) public ResponseEntity videoRtspUrl(@RequestBody IvsVideoRtspVo rtspVo) { - log.info("[GAB] videoRtspUrl : {}", rtspVo.toString()); + log.info("[GAB] videoRtspUrl : {}, rtspTestUrl: {}", rtspVo.toString(), rtspTestUrl); return ResponseEntity .ok() - .body( - IvsVideoRtspView - .builder() - .resultCode("0") - //.rtspURL("rtsp://admin:htjc2018@192.168.1.249:554/h264/ch39/main/av_stream") - .rtspURL("rtsp://admin:Zenap_qweasdzxc@192.168.1.217:554/h264/ch3/main/av_stream") - .build() + .body(IvsVideoRtspView + .builder() + .resultCode("0") + //.rtspURL("rtsp://admin:htjc2018@192.168.1.249:554/h264/ch39/main/av_stream") + .rtspURL(rtspTestUrl) + .build() ); }