优化端口预占用

This commit is contained in:
648540858
2023-06-25 10:18:29 +08:00
parent a45fab423b
commit 66eda32ab9
2 changed files with 16 additions and 11 deletions

View File

@@ -235,7 +235,7 @@ public class PlayServiceImpl implements IPlayService {
sendRtpItem.setReceiveStream(stream + "_talk");
int port = zlmrtpServerFactory.keepPort(mediaServerItem, playSsrc);
int port = zlmrtpServerFactory.keepPort(mediaServerItem, playSsrc, null);
//端口获取失败的ssrcInfo 没有必要发送点播指令
if (port <= 0) {
logger.info("[语音对讲] 端口分配异常deviceId={},channelId={}", device.getDeviceId(), channelId);