blob: 5664b628ebe3a3eb462037847f18d0b8f3d72af0 [file] [log] [blame]
Vojin Ilic504fc192021-05-31 12:02:281/*
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 Castelli8037fc62024-08-29 13:00:4014#include <optional>
Vojin Ilic504fc192021-05-31 12:02:2815
Danil Chapovalovee27f382023-12-18 12:09:1216#include "api/environment/environment.h"
Vojin Ilic504fc192021-05-31 12:02:2817#include "api/network_state_predictor.h"
Vojin Ilic504fc192021-05-31 12:02:2818#include "api/transport/bitrate_settings.h"
19#include "api/transport/network_control.h"
Danil Chapovalovee27f382023-12-18 12:09:1220#include "api/units/time_delta.h"
Vojin Ilic504fc192021-05-31 12:02:2821
22namespace webrtc {
23
24struct RtpTransportConfig {
Danil Chapovalovee27f382023-12-18 12:09:1225 Environment env;
26
Vojin Ilic504fc192021-05-31 12:02:2827 // 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 Ilic504fc192021-05-31 12:02:2831 // 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 K86b1cf72023-12-08 13:57:1338 // The burst interval of the pacer, see TaskQueuePacedSender constructor.
Florent Castelli8037fc62024-08-29 13:00:4039 std::optional<TimeDelta> pacer_burst_interval;
Vojin Ilic504fc192021-05-31 12:02:2840};
41} // namespace webrtc
42
43#endif // CALL_RTP_TRANSPORT_CONFIG_H_