blob: 7fc4b868cc4704065dc2638eced9d0d402ff391e [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
Patrik Höglundb6b29e02018-06-21 16:58:01 +020013#include "api/bitrate_constraints.h"
Paulina Hensman11b34f42018-04-09 14:24:52 +020014#include "api/fec_controller.h"
15#include "api/rtcerror.h"
Sebastian Janssondfce03a2018-05-18 18:05:10 +020016#include "api/transport/network_control.h"
Paulina Hensman11b34f42018-04-09 14:24:52 +020017#include "call/audio_state.h"
Paulina Hensman11b34f42018-04-09 14:24:52 +020018#include "rtc_base/platform_file.h"
19
20namespace webrtc {
21
22class AudioProcessing;
23class RtcEventLog;
24
25struct CallConfig {
26 explicit CallConfig(RtcEventLog* event_log);
Mirko Bonadei8fdcac32018-08-28 16:30:18 +020027 CallConfig(const CallConfig&);
Paulina Hensman11b34f42018-04-09 14:24:52 +020028 ~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.
37 // TODO(solenberg): Change this to a shared_ptr once we can use C++11.
38 rtc::scoped_refptr<AudioState> audio_state;
39
40 // Audio Processing Module to be used in this call.
41 // TODO(solenberg): Change this to a shared_ptr once we can use C++11.
42 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
51 // Network controller factory to use for this call.
52 NetworkControllerFactoryInterface* network_controller_factory = nullptr;
Paulina Hensman11b34f42018-04-09 14:24:52 +020053};
54
55} // namespace webrtc
56
57#endif // CALL_CALL_CONFIG_H_