OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include "webrtc/video/video_send_stream.h" | 10 #include "webrtc/video/video_send_stream.h" |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 rtc::Optional<AlrDetector::AlrExperimentSettings> alr_settings; | 831 rtc::Optional<AlrDetector::AlrExperimentSettings> alr_settings; |
832 if (content_type == VideoEncoderConfig::ContentType::kScreen) { | 832 if (content_type == VideoEncoderConfig::ContentType::kScreen) { |
833 alr_settings = AlrDetector::ParseAlrSettingsFromFieldTrial( | 833 alr_settings = AlrDetector::ParseAlrSettingsFromFieldTrial( |
834 AlrDetector::kScreenshareProbingBweExperimentName); | 834 AlrDetector::kScreenshareProbingBweExperimentName); |
835 } else { | 835 } else { |
836 alr_settings = AlrDetector::ParseAlrSettingsFromFieldTrial( | 836 alr_settings = AlrDetector::ParseAlrSettingsFromFieldTrial( |
837 AlrDetector::kStrictPacingAndProbingExperimentName); | 837 AlrDetector::kStrictPacingAndProbingExperimentName); |
838 } | 838 } |
839 if (alr_settings) { | 839 if (alr_settings) { |
840 transport->send_side_cc()->EnablePeriodicAlrProbing(true); | 840 transport->send_side_cc()->EnablePeriodicAlrProbing(true); |
841 transport->send_side_cc()->pacer()->SetPacingFactor( | 841 transport->pacer()->SetPacingFactor(alr_settings->pacing_factor); |
842 alr_settings->pacing_factor); | 842 transport->pacer()->SetQueueTimeLimit(alr_settings->max_paced_queue_time); |
843 transport->send_side_cc()->pacer()->SetQueueTimeLimit( | |
844 alr_settings->max_paced_queue_time); | |
845 } | 843 } |
846 | 844 |
847 if (config_->periodic_alr_bandwidth_probing) { | 845 if (config_->periodic_alr_bandwidth_probing) { |
848 transport->send_side_cc()->EnablePeriodicAlrProbing(true); | 846 transport->send_side_cc()->EnablePeriodicAlrProbing(true); |
849 } | 847 } |
850 | 848 |
851 // RTP/RTCP initialization. | 849 // RTP/RTCP initialization. |
852 | 850 |
853 // We add the highest spatial layer first to ensure it'll be prioritized | 851 // We add the highest spatial layer first to ensure it'll be prioritized |
854 // when sending padding, with the hope that the packet rate will be smaller, | 852 // when sending padding, with the hope that the packet rate will be smaller, |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 std::min(config_->rtp.max_packet_size, | 1377 std::min(config_->rtp.max_packet_size, |
1380 kPathMTU - transport_overhead_bytes_per_packet_); | 1378 kPathMTU - transport_overhead_bytes_per_packet_); |
1381 | 1379 |
1382 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 1380 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
1383 rtp_rtcp->SetMaxRtpPacketSize(rtp_packet_size); | 1381 rtp_rtcp->SetMaxRtpPacketSize(rtp_packet_size); |
1384 } | 1382 } |
1385 } | 1383 } |
1386 | 1384 |
1387 } // namespace internal | 1385 } // namespace internal |
1388 } // namespace webrtc | 1386 } // namespace webrtc |
OLD | NEW |