Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #include "call/call_config.h" |
| 12 | |
Yves Gerey | 988cc08 | 2018-10-23 10:03:01 | [diff] [blame] | 13 | #include "rtc_base/checks.h" |
| 14 | |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 15 | namespace webrtc { |
| 16 | |
Tomas Gunnarsson | 41bfcf4 | 2021-01-30 15:15:21 | [diff] [blame] | 17 | CallConfig::CallConfig(RtcEventLog* event_log, |
| 18 | TaskQueueBase* network_task_queue /* = nullptr*/) |
| 19 | : event_log(event_log), network_task_queue_(network_task_queue) { |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 20 | RTC_DCHECK(event_log); |
| 21 | } |
Mirko Bonadei | 8fdcac3 | 2018-08-28 14:30:18 | [diff] [blame] | 22 | |
| 23 | CallConfig::CallConfig(const CallConfig& config) = default; |
| 24 | |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 25 | RtpTransportConfig CallConfig::ExtractTransportConfig() const { |
| 26 | RtpTransportConfig transportConfig; |
| 27 | transportConfig.bitrate_config = bitrate_config; |
| 28 | transportConfig.event_log = event_log; |
| 29 | transportConfig.network_controller_factory = network_controller_factory; |
| 30 | transportConfig.network_state_predictor_factory = |
| 31 | network_state_predictor_factory; |
| 32 | transportConfig.task_queue_factory = task_queue_factory; |
| 33 | transportConfig.trials = trials; |
Henrik Boström | cf2856b | 2022-11-15 08:23:19 | [diff] [blame] | 34 | transportConfig.pacer_burst_interval = pacer_burst_interval; |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 35 | |
| 36 | return transportConfig; |
| 37 | } |
| 38 | |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 39 | CallConfig::~CallConfig() = default; |
| 40 | |
| 41 | } // namespace webrtc |