修复国标级联点播未使用自动自定义SSRC的BUG

This commit is contained in:
648540858
2024-10-24 10:04:38 +08:00
parent 222c9eade5
commit 2cd21a26d4
4 changed files with 30 additions and 4 deletions

View File

@@ -381,7 +381,9 @@ public class ZLMMediaNodeServerService implements IMediaNodeServerService {
param.put("dst_url", sendRtpItem.getIp());
param.put("dst_port", sendRtpItem.getPort());
JSONObject jsonObject = zlmresTfulUtils.startSendRtp(mediaServer, param);
if (jsonObject == null || jsonObject.getInteger("code") != 0 ) {
if (jsonObject == null ) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "连接zlm失败");
}else if (jsonObject.getInteger("code") != 0) {
throw new ControllerException(jsonObject.getInteger("code"), jsonObject.getString("msg"));
}
log.info("[推流结果]{} ,参数: {}",jsonObject, JSONObject.toJSONString(param));