Browse Source

/*/video/rtspurl/v1.0 返回的rtsp测试流通过nacos配置。*/

master
htjcAdmin 8 months ago
parent
commit
45c5e912a5
1 changed files with 11 additions and 8 deletions
  1. +11
    -8
      src/main/java/com/inspect/simulator/controller/IvsServerController.java

+ 11
- 8
src/main/java/com/inspect/simulator/controller/IvsServerController.java View File

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


Loading…
Cancel
Save