|
|
@ -111,7 +111,7 @@ public class DahuaController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ApiOperation(value = "设备分页查询",notes = "设备分页查询") |
|
|
|
@ApiOperation(value = "设备分页查询",notes = "设备分页查询") |
|
|
|
@PostMapping("/brm/getDevicePage") |
|
|
|
@PostMapping("/brm/getDevicePage") |
|
|
|
public DevicePageResponse getDevicePage(DevicePageRequest devicePageRequest){ |
|
|
|
public DevicePageResponse getDevicePage(@RequestBody DevicePageRequest devicePageRequest){ |
|
|
|
OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); |
|
|
|
OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); |
|
|
|
DevicePageResponse response=null; |
|
|
|
DevicePageResponse response=null; |
|
|
|
try { |
|
|
|
try { |
|
|
@ -135,13 +135,13 @@ public class DahuaController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ApiOperation(value = " rtsp实时预览",notes = " rtsp实时预览") |
|
|
|
@ApiOperation(value = " rtsp实时预览",notes = " rtsp实时预览") |
|
|
|
@PostMapping("/video/getRtspUrl") |
|
|
|
@PostMapping("/video/getRtspUrl") |
|
|
|
public RtspUrlResponse getRtspUrl(RtspUrlRequest rtspUrlRequest){ |
|
|
|
public RtspUrlResponse getRtspUrl(@RequestBody RtspUrlRequest rtspUrlRequest){ |
|
|
|
RtspUrlResponse response=null; |
|
|
|
RtspUrlResponse response=null; |
|
|
|
OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); |
|
|
|
OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
//log.info("RealTimePreviewDemo,getRtspUrl,request:{}", JSONUtil.toJsonStr(rtspUrlRequest));
|
|
|
|
//log.info("RealTimePreviewDemo,getRtspUrl,request:{}", JSONUtil.toJsonStr(rtspUrlRequest));
|
|
|
|
response = HttpUtils.executeJson("/evo-apigw/admin/API/MTS/Video/StartVideo", rtspUrlRequest,null, Method.POST , config, RtspUrlResponse.class); |
|
|
|
response = HttpUtils.executeJson("/evo-apigw/admin/API/MTS/Video/StartVideo", rtspUrlRequest,null, Method.POST , config, RtspUrlResponse.class); |
|
|
|
//log.info("RealTimePreviewDemo,getRtspUrl,response:{}", JSONUtil.toJsonStr(response));
|
|
|
|
log.info("RealTimePreviewDemo,getRtspUrl,response:{}", JSONUtil.toJsonStr(response)); |
|
|
|
} catch (ClientException e) { |
|
|
|
} catch (ClientException e) { |
|
|
|
log.error(e.getErrMsg(), e); |
|
|
|
log.error(e.getErrMsg(), e); |
|
|
|
} |
|
|
|
} |
|
|
|