mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
确保webrtc关闭udp模式时可用
This commit is contained in:
parent
d910c80a00
commit
9fd5152aa1
@ -544,8 +544,9 @@ void WebRtcTransportImp::onCheckAnswer(RtcSession &sdp) {
|
||||
m.rtcp_addr.reset();
|
||||
m.rtcp_addr.address = m.addr.address;
|
||||
|
||||
GET_CONFIG(uint16_t, local_port, Rtc::kPort);
|
||||
m.rtcp_addr.port = local_port;
|
||||
GET_CONFIG(uint16_t, udp_port, Rtc::kPort);
|
||||
GET_CONFIG(uint16_t, tcp_port, Rtc::kTcpPort);
|
||||
m.rtcp_addr.port = udp_port ? udp_port : tcp_port;
|
||||
m.port = m.rtcp_addr.port;
|
||||
sdp.origin.address = m.addr.address;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user