This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +21
-8
lines changed Expand file tree Collapse file tree 6 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import (" ../../../webrtc.gni" )
10
10
11
+ defines = []
12
+
11
13
config (" bwe_test_logging" ) {
12
14
if (rtc_enable_bwe_test_logging ) {
13
15
defines = [ " BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
@@ -23,6 +25,14 @@ rtc_library("goog_cc") {
23
25
" goog_cc_network_control.h" ,
24
26
]
25
27
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
+
26
36
deps = [
27
37
" :alr_detector" ,
28
38
" :delay_based_bwe" ,
Original file line number Diff line number Diff line change @@ -518,9 +518,15 @@ NetworkControlUpdate GoogCcNetworkController::OnTransportPacketsFeedback(
518
518
}
519
519
absl::optional<DataRate> probe_bitrate =
520
520
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
521
526
if (ignore_probes_lower_than_network_estimate_ && probe_bitrate &&
522
527
estimate_ && *probe_bitrate < delay_based_bwe_->last_estimate () &&
523
528
*probe_bitrate < estimate_->link_capacity_lower ) {
529
+ #endif
524
530
probe_bitrate.reset ();
525
531
}
526
532
if (limit_probes_lower_than_throughput_estimate_ && probe_bitrate &&
Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ rtc_library("transport_feedback") {
52
52
" transport_feedback_demuxer.h" ,
53
53
]
54
54
55
- if (owt_use_gpra ) {
56
- defines += [ " INTEL_GPRA" ]
57
- }
58
-
59
55
deps = [
60
56
" ../..:module_api_public" ,
61
57
" ../../../api:sequence_checker" ,
Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ void PacedSender::SetQueueTimeLimit(TimeDelta limit) {
224
224
void PacedSender::SendRtpPacket (std::unique_ptr<RtpPacketToSend> packet,
225
225
const PacedPacketInfo& cluster_info) {
226
226
// Since we don't generate padding for realtime mode, no lock required.
227
- // critsect_.Leave();
227
+ critsect_.Leave ();
228
228
packet_router_->SendPacket (std::move (packet), cluster_info);
229
- // critsect_.Enter();
229
+ critsect_.Enter ();
230
230
}
231
231
232
232
std::vector<std::unique_ptr<RtpPacketToSend>> PacedSender::GeneratePadding (
Original file line number Diff line number Diff line change @@ -615,7 +615,8 @@ void BasicPortAllocatorSession::GetCandidatesFromPort(
615
615
}
616
616
617
617
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 ;
619
620
}
620
621
621
622
bool BasicPortAllocatorSession::CandidatesAllocationDone () const {
Original file line number Diff line number Diff line change @@ -1808,7 +1808,7 @@ void PeerConnection::Close() {
1808
1808
}
1809
1809
// Update stats here so that we have the most recent stats for tracks and
1810
1810
// streams before the channels are closed.
1811
- legacy_stats_ ->UpdateStats (kStatsOutputLevelStandard );
1811
+ stats_ ->UpdateStats (kStatsOutputLevelStandard );
1812
1812
1813
1813
ice_connection_state_ = PeerConnectionInterface::kIceConnectionClosed ;
1814
1814
Observer ()->OnIceConnectionChange (ice_connection_state_);
You can’t perform that action at this time.
0 commit comments