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() ); }