xref: /aosp_15_r20/external/webrtc/call/rtp_transport_config.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker /*
2*d9f75844SAndroid Build Coastguard Worker  *  Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
3*d9f75844SAndroid Build Coastguard Worker  *
4*d9f75844SAndroid Build Coastguard Worker  *  Use of this source code is governed by a BSD-style license
5*d9f75844SAndroid Build Coastguard Worker  *  that can be found in the LICENSE file in the root of the source
6*d9f75844SAndroid Build Coastguard Worker  *  tree. An additional intellectual property rights grant can be found
7*d9f75844SAndroid Build Coastguard Worker  *  in the file PATENTS.  All contributing project authors may
8*d9f75844SAndroid Build Coastguard Worker  *  be found in the AUTHORS file in the root of the source tree.
9*d9f75844SAndroid Build Coastguard Worker  */
10*d9f75844SAndroid Build Coastguard Worker 
11*d9f75844SAndroid Build Coastguard Worker #ifndef CALL_RTP_TRANSPORT_CONFIG_H_
12*d9f75844SAndroid Build Coastguard Worker #define CALL_RTP_TRANSPORT_CONFIG_H_
13*d9f75844SAndroid Build Coastguard Worker 
14*d9f75844SAndroid Build Coastguard Worker #include <memory>
15*d9f75844SAndroid Build Coastguard Worker 
16*d9f75844SAndroid Build Coastguard Worker #include "api/field_trials_view.h"
17*d9f75844SAndroid Build Coastguard Worker #include "api/network_state_predictor.h"
18*d9f75844SAndroid Build Coastguard Worker #include "api/rtc_event_log/rtc_event_log.h"
19*d9f75844SAndroid Build Coastguard Worker #include "api/transport/bitrate_settings.h"
20*d9f75844SAndroid Build Coastguard Worker #include "api/transport/network_control.h"
21*d9f75844SAndroid Build Coastguard Worker #include "rtc_base/task_queue.h"
22*d9f75844SAndroid Build Coastguard Worker 
23*d9f75844SAndroid Build Coastguard Worker namespace webrtc {
24*d9f75844SAndroid Build Coastguard Worker 
25*d9f75844SAndroid Build Coastguard Worker struct RtpTransportConfig {
26*d9f75844SAndroid Build Coastguard Worker   // Bitrate config used until valid bitrate estimates are calculated. Also
27*d9f75844SAndroid Build Coastguard Worker   // used to cap total bitrate used. This comes from the remote connection.
28*d9f75844SAndroid Build Coastguard Worker   BitrateConstraints bitrate_config;
29*d9f75844SAndroid Build Coastguard Worker 
30*d9f75844SAndroid Build Coastguard Worker   // RtcEventLog to use for this call. Required.
31*d9f75844SAndroid Build Coastguard Worker   // Use webrtc::RtcEventLog::CreateNull() for a null implementation.
32*d9f75844SAndroid Build Coastguard Worker   RtcEventLog* event_log = nullptr;
33*d9f75844SAndroid Build Coastguard Worker 
34*d9f75844SAndroid Build Coastguard Worker   // Task Queue Factory to be used in this call. Required.
35*d9f75844SAndroid Build Coastguard Worker   TaskQueueFactory* task_queue_factory = nullptr;
36*d9f75844SAndroid Build Coastguard Worker 
37*d9f75844SAndroid Build Coastguard Worker   // NetworkStatePredictor to use for this call.
38*d9f75844SAndroid Build Coastguard Worker   NetworkStatePredictorFactoryInterface* network_state_predictor_factory =
39*d9f75844SAndroid Build Coastguard Worker       nullptr;
40*d9f75844SAndroid Build Coastguard Worker 
41*d9f75844SAndroid Build Coastguard Worker   // Network controller factory to use for this call.
42*d9f75844SAndroid Build Coastguard Worker   NetworkControllerFactoryInterface* network_controller_factory = nullptr;
43*d9f75844SAndroid Build Coastguard Worker 
44*d9f75844SAndroid Build Coastguard Worker   // Key-value mapping of internal configurations to apply,
45*d9f75844SAndroid Build Coastguard Worker   // e.g. field trials.
46*d9f75844SAndroid Build Coastguard Worker   const FieldTrialsView* trials = nullptr;
47*d9f75844SAndroid Build Coastguard Worker 
48*d9f75844SAndroid Build Coastguard Worker   // The burst interval of the pacer, see TaskQueuePacedSender constructor.
49*d9f75844SAndroid Build Coastguard Worker   absl::optional<TimeDelta> pacer_burst_interval;
50*d9f75844SAndroid Build Coastguard Worker };
51*d9f75844SAndroid Build Coastguard Worker }  // namespace webrtc
52*d9f75844SAndroid Build Coastguard Worker 
53*d9f75844SAndroid Build Coastguard Worker #endif  // CALL_RTP_TRANSPORT_CONFIG_H_
54