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}
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2024 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 API_TRANSPORT_BANDWIDTH_ESTIMATION_SETTINGS_H_
|
|
#define API_TRANSPORT_BANDWIDTH_ESTIMATION_SETTINGS_H_
|
|
|
|
#include "rtc_base/system/rtc_export.h"
|
|
namespace webrtc {
|
|
// Configuration settings affecting bandwidth estimation.
|
|
// These settings can be set and changed by an application.
|
|
struct RTC_EXPORT BandwidthEstimationSettings {
|
|
// A bandwith estimation probe may be sent using a RtpTransceiver with
|
|
// direction SendOnly or SendRecv that supports RTX. The probe can be sent
|
|
// without first sending media packets in which case Rtp padding packets are
|
|
// used.
|
|
bool allow_probe_without_media = false;
|
|
};
|
|
|
|
} // namespace webrtc
|
|
#endif // API_TRANSPORT_BANDWIDTH_ESTIMATION_SETTINGS_H_
|