Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2021 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 | #ifndef CALL_RTP_TRANSPORT_CONFIG_H_ |
| 12 | #define CALL_RTP_TRANSPORT_CONFIG_H_ |
| 13 | |
Florent Castelli | 8037fc6 | 2024-08-29 13:00:40 | [diff] [blame] | 14 | #include <optional> |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 15 | |
Danil Chapovalov | ee27f38 | 2023-12-18 12:09:12 | [diff] [blame] | 16 | #include "api/environment/environment.h" |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 17 | #include "api/network_state_predictor.h" |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 18 | #include "api/transport/bitrate_settings.h" |
| 19 | #include "api/transport/network_control.h" |
Danil Chapovalov | ee27f38 | 2023-12-18 12:09:12 | [diff] [blame] | 20 | #include "api/units/time_delta.h" |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 21 | |
| 22 | namespace webrtc { |
| 23 | |
| 24 | struct RtpTransportConfig { |
Danil Chapovalov | ee27f38 | 2023-12-18 12:09:12 | [diff] [blame] | 25 | Environment env; |
| 26 | |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 27 | // Bitrate config used until valid bitrate estimates are calculated. Also |
| 28 | // used to cap total bitrate used. This comes from the remote connection. |
| 29 | BitrateConstraints bitrate_config; |
| 30 | |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 31 | // NetworkStatePredictor to use for this call. |
| 32 | NetworkStatePredictorFactoryInterface* network_state_predictor_factory = |
| 33 | nullptr; |
| 34 | |
| 35 | // Network controller factory to use for this call. |
| 36 | NetworkControllerFactoryInterface* network_controller_factory = nullptr; |
| 37 | |
Per K | 86b1cf7 | 2023-12-08 13:57:13 | [diff] [blame] | 38 | // The burst interval of the pacer, see TaskQueuePacedSender constructor. |
Florent Castelli | 8037fc6 | 2024-08-29 13:00:40 | [diff] [blame] | 39 | std::optional<TimeDelta> pacer_burst_interval; |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 40 | }; |
| 41 | } // namespace webrtc |
| 42 | |
| 43 | #endif // CALL_RTP_TRANSPORT_CONFIG_H_ |