648540858
2023-07-24 17ea37506eb736077f911c6d76e041db04e01b7e
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java
@@ -85,7 +85,10 @@
        }else {
            param.put("port", port);
        }
        param.put("ssrc", ssrc);
        if (ssrc != 0) {
            param.put("ssrc", ssrc);
        }
        JSONObject openRtpServerResultJson = zlmresTfulUtils.openRtpServer(mediaServerItem, param);
        logger.info(JSONObject.toJSONString(openRtpServerResultJson));
        if (openRtpServerResultJson != null) {
@@ -164,7 +167,7 @@
        int localPort = 0;
        if (userSetting.getGbSendStreamStrict()) {
            if (userSetting.getGbSendStreamStrict()) {
                localPort = sendRtpPortManager.getNextPort(serverItem.getId());
                localPort = sendRtpPortManager.getNextPort(serverItem);
                if (localPort == 0) {
                    return null;
                }
@@ -201,7 +204,7 @@
        // 默认为随机端口
        int localPort = 0;
        if (userSetting.getGbSendStreamStrict()) {
            localPort = sendRtpPortManager.getNextPort(serverItem.getId());
            localPort = sendRtpPortManager.getNextPort(serverItem);
            if (localPort == 0) {
                return null;
            }