Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 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 | #ifndef CALL_CALL_CONFIG_H_ |
| 11 | #define CALL_CALL_CONFIG_H_ |
| 12 | |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 13 | #include "api/bitrate_constraints.h" |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 14 | #include "api/fec_controller.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 15 | #include "api/rtc_error.h" |
Danil Chapovalov | 359fe33 | 2019-04-01 10:46:36 +0200 | [diff] [blame] | 16 | #include "api/task_queue/task_queue_factory.h" |
Sebastian Jansson | dfce03a | 2018-05-18 18:05:10 +0200 | [diff] [blame] | 17 | #include "api/transport/network_control.h" |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 18 | #include "call/audio_state.h" |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | |
| 22 | class AudioProcessing; |
| 23 | class RtcEventLog; |
| 24 | |
| 25 | struct CallConfig { |
| 26 | explicit CallConfig(RtcEventLog* event_log); |
Mirko Bonadei | 8fdcac3 | 2018-08-28 16:30:18 +0200 | [diff] [blame] | 27 | CallConfig(const CallConfig&); |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 28 | ~CallConfig(); |
| 29 | |
| 30 | RTC_DEPRECATED static constexpr int kDefaultStartBitrateBps = 300000; |
| 31 | |
| 32 | // Bitrate config used until valid bitrate estimates are calculated. Also |
| 33 | // used to cap total bitrate used. This comes from the remote connection. |
| 34 | BitrateConstraints bitrate_config; |
| 35 | |
| 36 | // AudioState which is possibly shared between multiple calls. |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 37 | rtc::scoped_refptr<AudioState> audio_state; |
| 38 | |
| 39 | // Audio Processing Module to be used in this call. |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 40 | AudioProcessing* audio_processing = nullptr; |
| 41 | |
| 42 | // RtcEventLog to use for this call. Required. |
| 43 | // Use webrtc::RtcEventLog::CreateNull() for a null implementation. |
| 44 | RtcEventLog* event_log = nullptr; |
| 45 | |
| 46 | // FecController to use for this call. |
| 47 | FecControllerFactoryInterface* fec_controller_factory = nullptr; |
Sebastian Jansson | dfce03a | 2018-05-18 18:05:10 +0200 | [diff] [blame] | 48 | |
Danil Chapovalov | 359fe33 | 2019-04-01 10:46:36 +0200 | [diff] [blame] | 49 | // Task Queue Factory to be used in this call. |
| 50 | TaskQueueFactory* task_queue_factory = nullptr; |
| 51 | |
Sebastian Jansson | dfce03a | 2018-05-18 18:05:10 +0200 | [diff] [blame] | 52 | // Network controller factory to use for this call. |
| 53 | NetworkControllerFactoryInterface* network_controller_factory = nullptr; |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 54 | }; |
| 55 | |
| 56 | } // namespace webrtc |
| 57 | |
| 58 | #endif // CALL_CALL_CONFIG_H_ |