add rtc tcp port config and ignore candidate when port is 0

This commit is contained in:
xiongguangjie
2022-11-19 01:51:53 +08:00
parent 89959ef02f
commit 0d6fa1281a
5 changed files with 19 additions and 4 deletions

View File

@@ -1204,7 +1204,9 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
}
for (auto &cand : m.candidate) {
sdp_media.addAttr(std::make_shared<SdpAttrCandidate>(cand));
if(cand.port){
sdp_media.addAttr(std::make_shared<SdpAttrCandidate>(cand));
}
}
}
return ret;