blob: 23b60ce436a256711561a216c2a44ccabed6e124 [file] [log] [blame]
Paulina Hensman11b34f42018-04-09 14:24:52 +02001/*
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 12:03:01 +020013#include "rtc_base/checks.h"
14
Paulina Hensman11b34f42018-04-09 14:24:52 +020015namespace webrtc {
16
Tomas Gunnarsson41bfcf42021-01-30 16:15:21 +010017CallConfig::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 14:24:52 +020020 RTC_DCHECK(event_log);
21}
Mirko Bonadei8fdcac32018-08-28 16:30:18 +020022
23CallConfig::CallConfig(const CallConfig& config) = default;
24
Vojin Ilic504fc192021-05-31 14:02:28 +020025RtpTransportConfig 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;
34
35 return transportConfig;
36}
37
Paulina Hensman11b34f42018-04-09 14:24:52 +020038CallConfig::~CallConfig() = default;
39
40} // namespace webrtc