| | |
| | | |
| | | @Override |
| | | @RequestMapping(value = "/test/video", method = RequestMethod.GET) |
| | | @ApiOperation("test") |
| | | public CallResult<String> parseVideoRTSP() { |
| | | @ApiOperation("parse") |
| | | public String parseVideoRTSP() { |
| | | try { |
| | | CallResult<String> result = monibucaManager.parseVideo(); |
| | | String result = monibucaManager.parseVideo(); |
| | | return result; |
| | | } catch (Exception e) { |
| | | log.error("接口:com.hbbh.adapter.controller.api.MonibucaAPIController.parseVideoRTSP 调用失败"); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void stopStream(String param) { |
| | | |
| | | @RequestMapping(value = "/video/stop", method = RequestMethod.GET) |
| | | @ApiOperation("stop") |
| | | public void stopStream(@RequestParam("param")String param) { |
| | | try { |
| | | monibucaManager.stopStream(param); |
| | | } catch (Exception e) { |
| | | log.error("接口:com.hbbh.adapter.controller.api.MonibucaAPIController.parseVideoRTSP 调用失败"); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |