mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
修复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){
|
||||
if (!enable) {
|
||||
rtcp_fb.erase(SdpConst::kTWCCRtcpFb);
|
||||
extmap.erase(RtpExtType::abs_send_time);
|
||||
extmap.erase(RtpExtType::transport_cc);
|
||||
} else {
|
||||
rtcp_fb.emplace(SdpConst::kTWCCRtcpFb);
|
||||
extmap.emplace(RtpExtType::transport_cc);
|
||||
@ -1362,7 +1362,7 @@ void RtcConfigure::RtcTrackConfigure::enableREMB(bool enable){
|
||||
extmap.erase(RtpExtType::abs_send_time);
|
||||
} else {
|
||||
rtcp_fb.emplace(SdpConst::kRembRtcpFb);
|
||||
extmap.emplace(RtpExtType::transport_cc);
|
||||
extmap.emplace(RtpExtType::abs_send_time);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user