| 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 |
| 13 | #include "api/environment/environment.h" |
| 14 | #include "api/task_queue/task_queue_base.h" |
| 15 |
| 16 | namespace webrtc { |
| 17 |
| 18 | CallConfig::CallConfig(const Environment& env, |
| 19 | TaskQueueBase* network_task_queue) |
| 20 | : env(env), |
| 21 | network_task_queue_(network_task_queue) {} |
| 22 |
| 23 | CallConfig::CallConfig(const CallConfig& config) = default; |
| 24 |
| 25 | RtpTransportConfig CallConfig::ExtractTransportConfig() const { |
| 26 | RtpTransportConfig transport_config = {.env = env}; |
| 27 | transport_config.bitrate_config = bitrate_config; |
| 28 | transport_config.network_controller_factory = network_controller_factory; |
| 29 | transport_config.network_state_predictor_factory = |
| 30 | network_state_predictor_factory; |
| 31 | transport_config.pacer_burst_interval = pacer_burst_interval; |
| 32 |
| 33 | return transport_config; |
| 34 | } |
| 35 |
| 36 | CallConfig::~CallConfig() = default; |
| 37 |
| 38 | } // namespace webrtc |
| 39 |