| | |
| | | return new CommonResult(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage()); |
| | | } |
| | | |
| | | @GetMapping("/video") |
| | | @GetMapping("/Video/{code}/{subType}") |
| | | @ApiOperation(value = "设备获取监控地址") |
| | | @SneakyThrows |
| | | public CommonResult getMonitorAddress(@RequestParam String code, |
| | | @RequestParam(required = false) Integer subType, |
| | | public CommonResult getMonitorAddress(@PathVariable String code, @PathVariable Integer subType, |
| | | @RequestParam(required = false) String scheme) { |
| | | |
| | | if (subType == null) { |
| | | subType = 1; |
| | | } |
| | | if (StringUtils.isBlank(scheme)) { |
| | | if (!StringUtils.isNotBlank(scheme)) { |
| | | scheme = "RTSP"; |
| | | } |
| | | return CommonResult.successApi(videoUtil.getVideo(code, scheme, subType)); |