Browse Source

feat: 新增设备视频流从sys_config表获取,要求数据key值为RTSP_XXX,value值为实际视频流。XXX对应eqpbook_channel表的channel_code字段

master
yinhuaiwei 1 week ago
parent
commit
1fc72a0cf2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      inspect-ivs/src/main/java/com/inspect/ivs/controller/IvsStreamController.java

+ 1
- 1
inspect-ivs/src/main/java/com/inspect/ivs/controller/IvsStreamController.java View File

@ -57,7 +57,7 @@ public class IvsStreamController {
ivsVideoRtspView = new IvsVideoRtspView(); ivsVideoRtspView = new IvsVideoRtspView();
ivsVideoRtspView.setRtspURL("rtsp://admin:htjc2018@192.168.1.134:554/cam/realmonitor?channel=3&subtype=0"); ivsVideoRtspView.setRtspURL("rtsp://admin:htjc2018@192.168.1.134:554/cam/realmonitor?channel=3&subtype=0");
} else { } else {
String rtspUrl = (String) this.redisService.redisTemplate.opsForValue().get("sys_config:rtsp_" + ivsStreamStartVo.getSerial());
String rtspUrl = (String) this.redisService.redisTemplate.opsForValue().get("sys_config:RTSP_" + ivsStreamStartVo.getCameraCode());
if (StringUtils.isNotEmpty(rtspUrl)) { if (StringUtils.isNotEmpty(rtspUrl)) {
log.info("IVS_STREAM_START SYS_CONFIG_RTSP: {}", rtspUrl); log.info("IVS_STREAM_START SYS_CONFIG_RTSP: {}", rtspUrl);
ivsVideoRtspView = new IvsVideoRtspView(); ivsVideoRtspView = new IvsVideoRtspView();


Loading…
Cancel
Save