mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00

Using the Api, BWE components are recreated and new settings can be applied. Initially, the only configuration available is allowing BWE probes without media". Note that BWE components are created when transport first becomes writable. So calling this method before a PeerConnection is connected is cheap and only changes configuration. Integration test in https://webrtc-review.googlesource.com/c/src/+/337322 Bug: webrtc:14928 Change-Id: If2c848489bf94a1f7a5ebf90d2886d90c202c7c3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/336240 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41687}
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef CALL_RTP_TRANSPORT_CONFIG_H_
|
|
#define CALL_RTP_TRANSPORT_CONFIG_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "absl/types/optional.h"
|
|
#include "api/environment/environment.h"
|
|
#include "api/network_state_predictor.h"
|
|
#include "api/transport/bitrate_settings.h"
|
|
#include "api/transport/network_control.h"
|
|
#include "api/units/time_delta.h"
|
|
|
|
namespace webrtc {
|
|
|
|
struct RtpTransportConfig {
|
|
Environment env;
|
|
|
|
// Bitrate config used until valid bitrate estimates are calculated. Also
|
|
// used to cap total bitrate used. This comes from the remote connection.
|
|
BitrateConstraints bitrate_config;
|
|
|
|
// NetworkStatePredictor to use for this call.
|
|
NetworkStatePredictorFactoryInterface* network_state_predictor_factory =
|
|
nullptr;
|
|
|
|
// Network controller factory to use for this call.
|
|
NetworkControllerFactoryInterface* network_controller_factory = nullptr;
|
|
|
|
// The burst interval of the pacer, see TaskQueuePacedSender constructor.
|
|
absl::optional<TimeDelta> pacer_burst_interval;
|
|
};
|
|
} // namespace webrtc
|
|
|
|
#endif // CALL_RTP_TRANSPORT_CONFIG_H_
|