2011-12-22 10:26:13 +00:00
|
|
|
/*
|
2012-02-16 14:50:24 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-12-22 10:26:13 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// This file includes unit tests for ViERemb.
|
|
|
|
|
|
|
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
|
|
|
|
#include "modules/rtp_rtcp/interface/rtp_rtcp.h"
|
|
|
|
|
#include "modules/rtp_rtcp/mocks/mock_rtp_rtcp.h"
|
2012-03-05 17:12:41 +00:00
|
|
|
#include "modules/utility/interface/process_thread.h"
|
2011-12-22 10:26:13 +00:00
|
|
|
#include "system_wrappers/interface/scoped_ptr.h"
|
2012-06-21 09:57:24 +00:00
|
|
|
#include "system_wrappers/interface/sleep.h"
|
2011-12-22 10:26:13 +00:00
|
|
|
#include "video_engine/vie_remb.h"
|
|
|
|
|
|
|
|
|
|
using ::testing::_;
|
|
|
|
|
using ::testing::AnyNumber;
|
|
|
|
|
using ::testing::Return;
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2012-03-05 17:12:41 +00:00
|
|
|
// TODO(mflodman) Make a trigger function for this class to fake a clock and
|
|
|
|
|
// remove sleeps in the test.
|
|
|
|
|
class TestProcessThread : public ProcessThread {
|
|
|
|
|
public:
|
|
|
|
|
explicit TestProcessThread() {}
|
|
|
|
|
~TestProcessThread() {}
|
|
|
|
|
virtual WebRtc_Word32 Start() { return 0; }
|
|
|
|
|
virtual WebRtc_Word32 Stop() { return 0; }
|
|
|
|
|
virtual WebRtc_Word32 RegisterModule(const Module* module) { return 0; }
|
|
|
|
|
virtual WebRtc_Word32 DeRegisterModule(const Module* module) { return 0; }
|
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 10:26:13 +00:00
|
|
|
class ViERembTest : public ::testing::Test {
|
|
|
|
|
protected:
|
|
|
|
|
virtual void SetUp() {
|
2012-03-05 17:12:41 +00:00
|
|
|
process_thread_.reset(new TestProcessThread);
|
|
|
|
|
vie_remb_.reset(new VieRemb(process_thread_.get()));
|
2011-12-22 10:26:13 +00:00
|
|
|
}
|
2012-03-05 17:12:41 +00:00
|
|
|
scoped_ptr<TestProcessThread> process_thread_;
|
2011-12-22 10:26:13 +00:00
|
|
|
scoped_ptr<VieRemb> vie_remb_;
|
|
|
|
|
};
|
|
|
|
|
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, OneModuleTestForSendingRemb) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp;
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp);
|
2011-12-22 10:26:13 +00:00
|
|
|
|
|
|
|
|
const unsigned int bitrate_estimate = 456;
|
2012-10-18 11:12:39 +00:00
|
|
|
unsigned int ssrc = 1234;
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp, RemoteSSRC())
|
2012-10-18 11:12:39 +00:00
|
|
|
.WillRepeatedly(Return(ssrc));
|
2011-12-22 10:26:13 +00:00
|
|
|
|
|
|
|
|
// TODO(mflodman) Add fake clock and remove the lowered bitrate below.
|
2012-06-21 09:57:24 +00:00
|
|
|
SleepMs(1010);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp, SetREMBData(bitrate_estimate, 1, _))
|
|
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
// Lower bitrate to send another REMB packet.
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate - 100);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp, SetREMBData(bitrate_estimate - 100, 1, _))
|
|
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->RemoveRembSender(&rtp);
|
2011-12-22 10:26:13 +00:00
|
|
|
}
|
|
|
|
|
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, LowerEstimateToSendRemb) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp;
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp);
|
2011-12-22 10:26:13 +00:00
|
|
|
|
|
|
|
|
unsigned int bitrate_estimate = 456;
|
2012-10-18 11:12:39 +00:00
|
|
|
unsigned int ssrc = 1234;
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp, RemoteSSRC())
|
2012-10-18 11:12:39 +00:00
|
|
|
.WillRepeatedly(Return(ssrc));
|
2012-08-13 17:05:14 +00:00
|
|
|
// Call process to get a first estimate.
|
|
|
|
|
SleepMs(1010);
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(bitrate_estimate, 1, _))
|
|
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
2011-12-22 10:26:13 +00:00
|
|
|
|
|
|
|
|
// Lower the estimate with more than 3% to trigger a call to SetREMBData right
|
|
|
|
|
// away.
|
|
|
|
|
bitrate_estimate = bitrate_estimate - 100;
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(bitrate_estimate, 1, _))
|
|
|
|
|
.Times(1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->Process();
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
TEST_F(ViERembTest, VerifyIncreasingAndDecreasing) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp_0;
|
|
|
|
|
MockRtpRtcp rtp_1;
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp_0);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp_0);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->AddReceiveChannel(&rtp_1);
|
|
|
|
|
|
|
|
|
|
unsigned int bitrate_estimate[] = { 456, 789 };
|
|
|
|
|
unsigned int ssrc[] = { 1234, 5678 };
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate[0]);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp_0, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[0]));
|
2012-10-18 11:12:39 +00:00
|
|
|
EXPECT_CALL(rtp_1, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[1]));
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-08-13 17:05:14 +00:00
|
|
|
// Call process to get a first estimate.
|
2012-10-18 11:12:39 +00:00
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(bitrate_estimate[0], 2, _))
|
2012-08-13 17:05:14 +00:00
|
|
|
.Times(1);
|
|
|
|
|
SleepMs(1010);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate[1] + 100);
|
|
|
|
|
EXPECT_CALL(rtp_0, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[0]));
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp_1, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[1]));
|
|
|
|
|
|
|
|
|
|
// Lower the estimate to trigger a callback.
|
2012-10-18 11:12:39 +00:00
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(bitrate_estimate[1], 2, _))
|
2011-12-22 10:26:13 +00:00
|
|
|
.Times(1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate[1]);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp_0);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->RemoveRembSender(&rtp_0);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp_1);
|
|
|
|
|
}
|
|
|
|
|
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, NoRembForIncreasedBitrate) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp_0;
|
|
|
|
|
MockRtpRtcp rtp_1;
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp_0);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp_0);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->AddReceiveChannel(&rtp_1);
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
unsigned int bitrate_estimate = 456;
|
2011-12-22 10:26:13 +00:00
|
|
|
unsigned int ssrc[] = { 1234, 5678 };
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp_0, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[0]));
|
|
|
|
|
EXPECT_CALL(rtp_1, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[1]));
|
|
|
|
|
|
|
|
|
|
// Trigger a first call to have a running state.
|
|
|
|
|
// TODO(mflodman) Add fake clock.
|
2012-06-21 09:57:24 +00:00
|
|
|
SleepMs(1010);
|
2012-10-18 11:12:39 +00:00
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(bitrate_estimate, 2, _))
|
2011-12-22 10:26:13 +00:00
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
// Increased estimate shouldn't trigger a callback right away.
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate + 1);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(_, _, _))
|
|
|
|
|
.Times(0);
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
// Decreasing the estimate less than 3% shouldn't trigger a new callback.
|
|
|
|
|
int lower_estimate = bitrate_estimate * 98 / 100;
|
|
|
|
|
vie_remb_->OnReceiveBitrateChanged(lower_estimate);
|
2012-06-29 10:05:28 +00:00
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(_, _, _))
|
|
|
|
|
.Times(0);
|
2011-12-22 10:26:13 +00:00
|
|
|
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp_1);
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp_0);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->RemoveRembSender(&rtp_0);
|
2011-12-22 10:26:13 +00:00
|
|
|
}
|
|
|
|
|
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, ChangeSendRtpModule) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp_0;
|
|
|
|
|
MockRtpRtcp rtp_1;
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp_0);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp_0);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->AddReceiveChannel(&rtp_1);
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
unsigned int bitrate_estimate = 456;
|
2011-12-22 10:26:13 +00:00
|
|
|
unsigned int ssrc[] = { 1234, 5678 };
|
|
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp_0, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[0]));
|
|
|
|
|
EXPECT_CALL(rtp_1, RemoteSSRC())
|
|
|
|
|
.Times(AnyNumber())
|
|
|
|
|
.WillRepeatedly(Return(ssrc[1]));
|
|
|
|
|
|
2012-08-13 17:05:14 +00:00
|
|
|
// Call process to get a first estimate.
|
|
|
|
|
SleepMs(1010);
|
2012-10-18 11:12:39 +00:00
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(bitrate_estimate, 2, _))
|
2012-08-13 17:05:14 +00:00
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
2011-12-22 10:26:13 +00:00
|
|
|
// Decrease estimate to trigger a REMB.
|
2012-10-18 11:12:39 +00:00
|
|
|
bitrate_estimate = bitrate_estimate - 100;
|
|
|
|
|
EXPECT_CALL(rtp_0, SetREMBData(bitrate_estimate, 2, _))
|
2011-12-22 10:26:13 +00:00
|
|
|
.Times(1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
// Remove the sending module, add it again -> should get remb on the second
|
|
|
|
|
// module.
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->RemoveRembSender(&rtp_0);
|
|
|
|
|
vie_remb_->AddRembSender(&rtp_1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
bitrate_estimate = bitrate_estimate - 100;
|
|
|
|
|
EXPECT_CALL(rtp_1, SetREMBData(bitrate_estimate, 2, _))
|
2011-12-22 10:26:13 +00:00
|
|
|
.Times(1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp_0);
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp_1);
|
|
|
|
|
}
|
|
|
|
|
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, OnlyOneRembForDoubleProcess) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp;
|
|
|
|
|
unsigned int bitrate_estimate = 456;
|
2012-10-18 11:12:39 +00:00
|
|
|
unsigned int ssrc = 1234;
|
2011-12-22 10:26:13 +00:00
|
|
|
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp, RemoteSSRC())
|
2012-10-18 11:12:39 +00:00
|
|
|
.WillRepeatedly(Return(ssrc));
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-08-13 17:05:14 +00:00
|
|
|
// Call process to get a first estimate.
|
|
|
|
|
SleepMs(1010);
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(_, _, _))
|
|
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
2011-12-22 10:26:13 +00:00
|
|
|
// Lower the estimate, should trigger a call to SetREMBData right away.
|
|
|
|
|
bitrate_estimate = bitrate_estimate - 100;
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(bitrate_estimate, 1, _))
|
|
|
|
|
.Times(1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
// Call Process again, this should not trigger a new callback.
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(_, _, _))
|
|
|
|
|
.Times(0);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->RemoveRembSender(&rtp);
|
2011-12-22 10:26:13 +00:00
|
|
|
}
|
|
|
|
|
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, NoOnReceivedBitrateChangedCall) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp;
|
|
|
|
|
EXPECT_CALL(rtp, RemoteSSRC())
|
|
|
|
|
.WillRepeatedly(Return(1234));
|
|
|
|
|
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->AddRembSender(&rtp);
|
2011-12-22 10:26:13 +00:00
|
|
|
// TODO(mflodman) Add fake clock.
|
2012-06-21 09:57:24 +00:00
|
|
|
SleepMs(1010);
|
2011-12-22 10:26:13 +00:00
|
|
|
// No bitrate estimate given, no callback expected.
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(_, _, _))
|
|
|
|
|
.Times(0);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
|
|
|
|
vie_remb_->RemoveReceiveChannel(&rtp);
|
2012-02-16 14:50:24 +00:00
|
|
|
vie_remb_->RemoveRembSender(&rtp);
|
2011-12-22 10:26:13 +00:00
|
|
|
}
|
|
|
|
|
|
2012-04-23 13:22:26 +00:00
|
|
|
// Only register receiving modules and make sure we fallback to trigger a REMB
|
|
|
|
|
// packet on this one.
|
2012-06-29 10:05:28 +00:00
|
|
|
TEST_F(ViERembTest, NoSendingRtpModule) {
|
2011-12-22 10:26:13 +00:00
|
|
|
MockRtpRtcp rtp;
|
|
|
|
|
vie_remb_->AddReceiveChannel(&rtp);
|
|
|
|
|
|
|
|
|
|
unsigned int bitrate_estimate = 456;
|
2012-10-18 11:12:39 +00:00
|
|
|
unsigned int ssrc = 1234;
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
EXPECT_CALL(rtp, RemoteSSRC())
|
2012-10-18 11:12:39 +00:00
|
|
|
.WillRepeatedly(Return(ssrc));
|
2011-12-22 10:26:13 +00:00
|
|
|
|
2012-08-13 17:05:14 +00:00
|
|
|
// Call process to get a first estimate.
|
|
|
|
|
SleepMs(1010);
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(_, _, _))
|
|
|
|
|
.Times(1);
|
|
|
|
|
vie_remb_->Process();
|
|
|
|
|
|
2012-04-23 13:22:26 +00:00
|
|
|
// Lower the estimate to trigger a new packet REMB packet.
|
2011-12-22 10:26:13 +00:00
|
|
|
bitrate_estimate = bitrate_estimate - 100;
|
|
|
|
|
EXPECT_CALL(rtp, SetREMBData(_, _, _))
|
2012-04-23 13:22:26 +00:00
|
|
|
.Times(1);
|
2012-10-18 11:12:39 +00:00
|
|
|
vie_remb_->OnReceiveBitrateChanged(bitrate_estimate);
|
2011-12-22 10:26:13 +00:00
|
|
|
vie_remb_->Process();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|