panlinlin
2021-04-27 bf8fb0c51f4e7894a62636dede6c69a2a85d8458
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java
@@ -131,8 +131,8 @@
    }
    public JSONObject addFFmpegSource(String src_url, String dst_url, String timeout_ms){
        System.out.println(src_url);
        System.out.println(dst_url);
        logger.info(src_url);
        logger.info(dst_url);
        Map<String, Object> param = new HashMap<>();
        param.put("src_url", src_url);
        param.put("dst_url", dst_url);
@@ -194,4 +194,14 @@
        param.put("force", 1);
        return sendPost("close_streams",param, null);
    }
    public JSONObject getAllSession() {
        return sendPost("getAllSession",null, null);
    }
    public void kickSessions(String localPortSStr) {
        Map<String, Object> param = new HashMap<>();
        param.put("local_port", localPortSStr);
        sendPost("kick_sessions",param, null);
    }
}