修复remb和twcc开关相关bug
This commit is contained in:
parent
60a6d4af0b
commit
d74f2ff155
|
|
@ -1349,7 +1349,7 @@ string const SdpConst::kRembRtcpFb = "goog-remb";
|
||||||
void RtcConfigure::RtcTrackConfigure::enableTWCC(bool enable){
|
void RtcConfigure::RtcTrackConfigure::enableTWCC(bool enable){
|
||||||
if (!enable) {
|
if (!enable) {
|
||||||
rtcp_fb.erase(SdpConst::kTWCCRtcpFb);
|
rtcp_fb.erase(SdpConst::kTWCCRtcpFb);
|
||||||
extmap.erase(RtpExtType::abs_send_time);
|
extmap.erase(RtpExtType::transport_cc);
|
||||||
} else {
|
} else {
|
||||||
rtcp_fb.emplace(SdpConst::kTWCCRtcpFb);
|
rtcp_fb.emplace(SdpConst::kTWCCRtcpFb);
|
||||||
extmap.emplace(RtpExtType::transport_cc);
|
extmap.emplace(RtpExtType::transport_cc);
|
||||||
|
|
@ -1362,7 +1362,7 @@ void RtcConfigure::RtcTrackConfigure::enableREMB(bool enable){
|
||||||
extmap.erase(RtpExtType::abs_send_time);
|
extmap.erase(RtpExtType::abs_send_time);
|
||||||
} else {
|
} else {
|
||||||
rtcp_fb.emplace(SdpConst::kRembRtcpFb);
|
rtcp_fb.emplace(SdpConst::kRembRtcpFb);
|
||||||
extmap.emplace(RtpExtType::transport_cc);
|
extmap.emplace(RtpExtType::abs_send_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue