webrtc application sdp不添加rtcp相关描述
This commit is contained in:
parent
415ed33405
commit
17ba5d3813
|
|
@ -564,8 +564,10 @@ void WebRtcTransportImp::onCheckAnswer(RtcSession &sdp) {
|
||||||
|
|
||||||
GET_CONFIG(uint16_t, udp_port, Rtc::kPort);
|
GET_CONFIG(uint16_t, udp_port, Rtc::kPort);
|
||||||
GET_CONFIG(uint16_t, tcp_port, Rtc::kTcpPort);
|
GET_CONFIG(uint16_t, tcp_port, Rtc::kTcpPort);
|
||||||
m.rtcp_addr.port = m.port ? (udp_port ? udp_port : tcp_port) : 0;
|
m.port = m.port ? (udp_port ? udp_port : tcp_port) : 0;
|
||||||
m.port = m.rtcp_addr.port;
|
if (m.type != TrackApplication) {
|
||||||
|
m.rtcp_addr.port = m.port;
|
||||||
|
}
|
||||||
sdp.origin.address = m.addr.address;
|
sdp.origin.address = m.addr.address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue