Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit d03699a

Browse files
taste1981jianjunz
authored andcommitted
Renable gpra with new interface (#74)
1 parent a673102 commit d03699a

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed

modules/congestion_controller/goog_cc/BUILD.gn

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import("../../../webrtc.gni")
1010

11+
defines = []
12+
1113
config("bwe_test_logging") {
1214
if (rtc_enable_bwe_test_logging) {
1315
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
@@ -23,6 +25,14 @@ rtc_library("goog_cc") {
2325
"goog_cc_network_control.h",
2426
]
2527

28+
if (owt_use_gpra) {
29+
# use Intel Goodput Rate Adapatation BWE
30+
include_dirs = [ owt_gpra_header_root ]
31+
libs = [ "gpra_lib.lib" ]
32+
lib_dirs = [ owt_gpra_lib_root ]
33+
defines += [ "INTEL_GPRA" ]
34+
}
35+
2636
deps = [
2737
":alr_detector",
2838
":delay_based_bwe",

modules/congestion_controller/goog_cc/goog_cc_network_control.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,15 @@ NetworkControlUpdate GoogCcNetworkController::OnTransportPacketsFeedback(
518518
}
519519
absl::optional<DataRate> probe_bitrate =
520520
probe_bitrate_estimator_->FetchAndResetLastEstimatedBitrate();
521+
#ifdef INTEL_GPRA
522+
523+
if (ignore_probes_lower_than_network_estimate_ && probe_bitrate &&
524+
estimate_ && *probe_bitrate < estimate_->link_capacity_lower) {
525+
#else
521526
if (ignore_probes_lower_than_network_estimate_ && probe_bitrate &&
522527
estimate_ && *probe_bitrate < delay_based_bwe_->last_estimate() &&
523528
*probe_bitrate < estimate_->link_capacity_lower) {
529+
#endif
524530
probe_bitrate.reset();
525531
}
526532
if (limit_probes_lower_than_throughput_estimate_ && probe_bitrate &&

modules/congestion_controller/rtp/BUILD.gn

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ rtc_library("transport_feedback") {
5252
"transport_feedback_demuxer.h",
5353
]
5454

55-
if (owt_use_gpra) {
56-
defines += [ "INTEL_GPRA" ]
57-
}
58-
5955
deps = [
6056
"../..:module_api_public",
6157
"../../../api:sequence_checker",

modules/pacing/paced_sender.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ void PacedSender::SetQueueTimeLimit(TimeDelta limit) {
224224
void PacedSender::SendRtpPacket(std::unique_ptr<RtpPacketToSend> packet,
225225
const PacedPacketInfo& cluster_info) {
226226
// Since we don't generate padding for realtime mode, no lock required.
227-
//critsect_.Leave();
227+
critsect_.Leave();
228228
packet_router_->SendPacket(std::move(packet), cluster_info);
229-
//critsect_.Enter();
229+
critsect_.Enter();
230230
}
231231

232232
std::vector<std::unique_ptr<RtpPacketToSend>> PacedSender::GeneratePadding(

p2p/client/basic_port_allocator.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ void BasicPortAllocatorSession::GetCandidatesFromPort(
615615
}
616616

617617
bool BasicPortAllocator::MdnsObfuscationEnabled() const {
618-
return network_manager()->GetMdnsResponder() != nullptr;
618+
// Jianlin: disable Mdns support. TODO: negotiate at SDK level with UaInfo exchange.
619+
return false;
619620
}
620621

621622
bool BasicPortAllocatorSession::CandidatesAllocationDone() const {

pc/peer_connection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ void PeerConnection::Close() {
18081808
}
18091809
// Update stats here so that we have the most recent stats for tracks and
18101810
// streams before the channels are closed.
1811-
legacy_stats_->UpdateStats(kStatsOutputLevelStandard);
1811+
stats_->UpdateStats(kStatsOutputLevelStandard);
18121812

18131813
ice_connection_state_ = PeerConnectionInterface::kIceConnectionClosed;
18141814
Observer()->OnIceConnectionChange(ice_connection_state_);

0 commit comments

Comments
 (0)