blob: 69d9e59e29ce5a76d12b9a63401a563f9adc5ecb [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#ifndef CALL_CALL_CONFIG_H_
11#define CALL_CALL_CONFIG_H_
12
13#include "api/fec_controller.h"
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +010014#include "api/neteq/neteq_factory.h"
Ying Wang0810a7c2019-04-10 13:48:24 +020015#include "api/network_state_predictor.h"
Steve Anton10542f22019-01-11 09:11:00 -080016#include "api/rtc_error.h"
Danil Chapovalov359fe332019-04-01 10:46:36 +020017#include "api/task_queue/task_queue_factory.h"
Mirko Bonadei738bfa72019-09-17 14:47:38 +020018#include "api/transport/bitrate_settings.h"
Sebastian Janssondfce03a2018-05-18 18:05:10 +020019#include "api/transport/network_control.h"
Paulina Hensman11b34f42018-04-09 14:24:52 +020020#include "call/audio_state.h"
Paulina Hensman11b34f42018-04-09 14:24:52 +020021
22namespace webrtc {
23
24class AudioProcessing;
25class RtcEventLog;
26
27struct CallConfig {
28 explicit CallConfig(RtcEventLog* event_log);
Mirko Bonadei8fdcac32018-08-28 16:30:18 +020029 CallConfig(const CallConfig&);
Paulina Hensman11b34f42018-04-09 14:24:52 +020030 ~CallConfig();
31
32 RTC_DEPRECATED static constexpr int kDefaultStartBitrateBps = 300000;
33
34 // Bitrate config used until valid bitrate estimates are calculated. Also
35 // used to cap total bitrate used. This comes from the remote connection.
36 BitrateConstraints bitrate_config;
37
38 // AudioState which is possibly shared between multiple calls.
Paulina Hensman11b34f42018-04-09 14:24:52 +020039 rtc::scoped_refptr<AudioState> audio_state;
40
41 // Audio Processing Module to be used in this call.
Paulina Hensman11b34f42018-04-09 14:24:52 +020042 AudioProcessing* audio_processing = nullptr;
43
44 // RtcEventLog to use for this call. Required.
45 // Use webrtc::RtcEventLog::CreateNull() for a null implementation.
46 RtcEventLog* event_log = nullptr;
47
48 // FecController to use for this call.
49 FecControllerFactoryInterface* fec_controller_factory = nullptr;
Sebastian Janssondfce03a2018-05-18 18:05:10 +020050
Danil Chapovalov53d45ba2019-07-03 14:56:33 +020051 // Task Queue Factory to be used in this call. Required.
Danil Chapovalov359fe332019-04-01 10:46:36 +020052 TaskQueueFactory* task_queue_factory = nullptr;
53
Ying Wang0810a7c2019-04-10 13:48:24 +020054 // NetworkStatePredictor to use for this call.
55 NetworkStatePredictorFactoryInterface* network_state_predictor_factory =
56 nullptr;
57
Sebastian Janssondfce03a2018-05-18 18:05:10 +020058 // Network controller factory to use for this call.
59 NetworkControllerFactoryInterface* network_controller_factory = nullptr;
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +010060
61 // NetEq factory to use for this call.
62 NetEqFactory* neteq_factory = nullptr;
Paulina Hensman11b34f42018-04-09 14:24:52 +020063};
64
65} // namespace webrtc
66
67#endif // CALL_CALL_CONFIG_H_