sdp相关特性暴露成常量

This commit is contained in:
xia-chu
2021-04-30 15:15:35 +08:00
parent dc2c882994
commit c77c4cfd4d
3 changed files with 31 additions and 19 deletions

View File

@@ -623,7 +623,7 @@ void WebRtcTransportImp::onSortedRtp(const RtpPayloadInfo &info, RtpPacket::Ptr
//开启remb则发送remb包调节比特率
GET_CONFIG(size_t, remb_bit_rate, RTC::kRembBitRate);
if (remb_bit_rate) {
if (remb_bit_rate && getSdp(SdpType::answer).supportRtcpFb(SdpConst::kRembRtcpFb)) {
sendRtcpRemb(_recv_video_ssrc, remb_bit_rate);
}
}