webrtc application sdp不添加rtcp相关描述

This commit is contained in:
xia-chu 2023-08-29 11:07:28 +08:00
parent 415ed33405
commit 17ba5d3813
1 changed files with 4 additions and 2 deletions

View File

@ -564,8 +564,10 @@ void WebRtcTransportImp::onCheckAnswer(RtcSession &sdp) {
GET_CONFIG(uint16_t, udp_port, Rtc::kPort);
GET_CONFIG(uint16_t, tcp_port, Rtc::kTcpPort);
m.rtcp_addr.port = m.port ? (udp_port ? udp_port : tcp_port) : 0;
m.port = m.rtcp_addr.port;
m.port = m.port ? (udp_port ? udp_port : tcp_port) : 0;
if (m.type != TrackApplication) {
m.rtcp_addr.port = m.port;
}
sdp.origin.address = m.addr.address;
}