blob: 93f6b1aec440b67194050a921284e7aec8472a1f [file] [log] [blame]
Paulina Hensman11b34f42018-04-09 12:24:521/*
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 Gerey988cc082018-10-23 10:03:0113#include "rtc_base/checks.h"
14
Paulina Hensman11b34f42018-04-09 12:24:5215namespace webrtc {
16
Tomas Gunnarsson41bfcf42021-01-30 15:15:2117CallConfig::CallConfig(RtcEventLog* event_log,
18 TaskQueueBase* network_task_queue /* = nullptr*/)
19 : event_log(event_log), network_task_queue_(network_task_queue) {
Paulina Hensman11b34f42018-04-09 12:24:5220 RTC_DCHECK(event_log);
21}
Mirko Bonadei8fdcac32018-08-28 14:30:1822
23CallConfig::CallConfig(const CallConfig& config) = default;
24
Vojin Ilic504fc192021-05-31 12:02:2825RtpTransportConfig 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ömcf2856b2022-11-15 08:23:1934 transportConfig.pacer_burst_interval = pacer_burst_interval;
Vojin Ilic504fc192021-05-31 12:02:2835
36 return transportConfig;
37}
38
Paulina Hensman11b34f42018-04-09 12:24:5239CallConfig::~CallConfig() = default;
40
41} // namespace webrtc