Revert "Revert of Parse FlexFEC RTP headers in Call and add integration with BWE. (patchset #17 id:460001 of https://codereview.webrtc.org/2553863003/ )"

Problem fixed: RTP header extensions were not properly set in tests.

BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2593963003
Cr-Commit-Position: refs/heads/master@{#15741}
This commit is contained in:
brandtr
2016-12-21 06:37:18 -08:00
committed by Commit bot
parent 9ba94baa9c
commit b29e652b10
18 changed files with 306 additions and 166 deletions

View File

@ -197,6 +197,23 @@ CongestionController::CongestionController(
CongestionController::~CongestionController() {}
void CongestionController::OnReceivedPacket(int64_t arrival_time_ms,
size_t payload_size,
const RTPHeader& header) {
// Send-side BWE.
if (header.extension.hasTransportSequenceNumber) {
remote_estimator_proxy_.IncomingPacket(arrival_time_ms, payload_size,
header);
return;
}
// Receive-side BWE.
if (remote_bitrate_estimator_) {
remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size,
header);
}
}
void CongestionController::SetBweBitrates(int min_bitrate_bps,
int start_bitrate_bps,
int max_bitrate_bps) {