ssrc 码流类型调整
This commit is contained in:
parent
205f1f1f60
commit
f1c4287611
@ -600,7 +600,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||||||
param.put("protocol.continue_push_ms", "3000" );
|
param.put("protocol.continue_push_ms", "3000" );
|
||||||
// 最多等待未初始化的Track时间,单位毫秒,超时之后会忽略未初始化的Track, 设置此选项优化那些音频错误的不规范流,
|
// 最多等待未初始化的Track时间,单位毫秒,超时之后会忽略未初始化的Track, 设置此选项优化那些音频错误的不规范流,
|
||||||
// 等zlm支持给每个rtpServer设置关闭音频的时候可以不设置此选项
|
// 等zlm支持给每个rtpServer设置关闭音频的时候可以不设置此选项
|
||||||
// param.put("general.wait_track_ready_ms", "3000" );
|
// param.put("general.wait_track_ready_ms", "3000" );
|
||||||
if (mediaServerItem.isRtpEnable() && !ObjectUtils.isEmpty(mediaServerItem.getRtpPortRange())) {
|
if (mediaServerItem.isRtpEnable() && !ObjectUtils.isEmpty(mediaServerItem.getRtpPortRange())) {
|
||||||
param.put("rtp_proxy.port_range", mediaServerItem.getRtpPortRange().replace(",", "-"));
|
param.put("rtp_proxy.port_range", mediaServerItem.getRtpPortRange().replace(",", "-"));
|
||||||
}
|
}
|
||||||
|
@ -305,17 +305,17 @@ public class PsController {
|
|||||||
public int getTestPort() {
|
public int getTestPort() {
|
||||||
MediaServerItem defaultMediaServer = mediaServerService.getDefaultMediaServer();
|
MediaServerItem defaultMediaServer = mediaServerService.getDefaultMediaServer();
|
||||||
|
|
||||||
// for (int i = 0; i <300; i++) {
|
// for (int i = 0; i <300; i++) {
|
||||||
// new Thread(() -> {
|
// new Thread(() -> {
|
||||||
// int nextPort = sendRtpPortManager.getNextPort(defaultMediaServer);
|
// int nextPort = sendRtpPortManager.getNextPort(defaultMediaServer);
|
||||||
// try {
|
// try {
|
||||||
// Thread.sleep((int)Math.random()*10);
|
// Thread.sleep((int)Math.random()*10);
|
||||||
// } catch (InterruptedException e) {
|
// } catch (InterruptedException e) {
|
||||||
// throw new RuntimeException(e);
|
// throw new RuntimeException(e);
|
||||||
// }
|
// }
|
||||||
// System.out.println(nextPort);
|
// System.out.println(nextPort);
|
||||||
// }).start();
|
// }).start();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
return sendRtpPortManager.getNextPort(defaultMediaServer);
|
return sendRtpPortManager.getNextPort(defaultMediaServer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user