Monica视频监控处理程序
xc
2021-02-08 6f86e7cee012a5798f0e361ec984e1daf36b3c2e
src/main/java/com/hbbh/adapter/controller/MonibucaController.java
@@ -26,10 +26,10 @@
    @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 调用失败");
@@ -39,7 +39,14 @@
    }
    @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();
        }
    }
}