whycxzp
2021-04-19 1d487bd959c73fdb9a5b4c895173ece167ed5b02
src/main/java/com/whyc/video/RtspController.java
@@ -22,7 +22,8 @@
    @RequestMapping("/receive")
    @ResponseBody
    public String receive(HttpServletRequest request, Object response) {
        String ipSession = request.getParameter("ipSession");
        //String ipSession = request.getParameter("ipSession");
        String ip = request.getParameter("ip");
        System.out.println("method:" + request.getMethod());
        try {
            ServletInputStream inputStream = request.getInputStream();
@@ -36,7 +37,7 @@
//                System.out.println("");
//                System.out.println(len);
//                System.out.println("--------------------------------------------------------");
                wsHandler.sendVideo(ipSession,data);
                wsHandler.sendVideo(ip,data);
            }
        } catch (Exception e) {
            e.printStackTrace();