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 13 #include "rtc_base/checks.h" 14 15 namespace webrtc { 16 CallConfig(RtcEventLog * event_log,TaskQueueBase * network_task_queue)17CallConfig::CallConfig(RtcEventLog* event_log, 18 TaskQueueBase* network_task_queue /* = nullptr*/) 19 : event_log(event_log), network_task_queue_(network_task_queue) { 20 RTC_DCHECK(event_log); 21 } 22 23 CallConfig::CallConfig(const CallConfig& config) = default; 24 ExtractTransportConfig() const25RtpTransportConfig 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 transportConfig.pacer_burst_interval = pacer_burst_interval; 35 36 return transportConfig; 37 } 38 39 CallConfig::~CallConfig() = default; 40 41 } // namespace webrtc 42