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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user