Nagram/TMessagesProj/jni/voip/webrtc/call/call_config.cc

41 lines
1.3 KiB
C++
Raw Normal View History

2019-06-04 10:14:50 +00:00
/*
2020-08-14 16:58:22 +00:00
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
2019-06-04 10:14:50 +00:00
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
2020-08-14 16:58:22 +00:00
#include "call/call_config.h"
#include "rtc_base/checks.h"
2019-06-04 10:14:50 +00:00
namespace webrtc {
2021-06-25 00:43:10 +00:00
CallConfig::CallConfig(RtcEventLog* event_log,
TaskQueueBase* network_task_queue /* = nullptr*/)
: event_log(event_log), network_task_queue_(network_task_queue) {
2020-08-14 16:58:22 +00:00
RTC_DCHECK(event_log);
2019-06-04 10:14:50 +00:00
}
2020-08-14 16:58:22 +00:00
CallConfig::CallConfig(const CallConfig& config) = default;
2022-03-11 16:49:54 +00:00
RtpTransportConfig CallConfig::ExtractTransportConfig() const {
RtpTransportConfig transportConfig;
transportConfig.bitrate_config = bitrate_config;
transportConfig.event_log = event_log;
transportConfig.network_controller_factory = network_controller_factory;
transportConfig.network_state_predictor_factory =
network_state_predictor_factory;
transportConfig.task_queue_factory = task_queue_factory;
transportConfig.trials = trials;
return transportConfig;
}
2020-08-14 16:58:22 +00:00
CallConfig::~CallConfig() = default;
2019-06-04 10:14:50 +00:00
} // namespace webrtc