Commit d74f2ff1 by xiongziliang

修复remb和twcc开关相关bug

parent 60a6d4af
...@@ -1349,7 +1349,7 @@ string const SdpConst::kRembRtcpFb = "goog-remb"; ...@@ -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){ ...@@ -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);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论