mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Remove unused combined_audio_video_bwe.
Bug: None Change-Id: Ie539351f98b7a0ebb5f08e0df5c5759a2bcb5588 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/306520 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Yury Yarashevich <yura.yaroshevich@gmail.com> Cr-Commit-Position: refs/heads/main@{#40160}
This commit is contained in:
parent
2bb686dbc0
commit
87e74f9fb7
11 changed files with 0 additions and 49 deletions
|
@ -52,7 +52,6 @@ void AudioOptions::SetAll(const AudioOptions& change) {
|
|||
change.audio_jitter_buffer_fast_accelerate);
|
||||
SetFrom(&audio_jitter_buffer_min_delay_ms,
|
||||
change.audio_jitter_buffer_min_delay_ms);
|
||||
SetFrom(&combined_audio_video_bwe, change.combined_audio_video_bwe);
|
||||
SetFrom(&audio_network_adaptor, change.audio_network_adaptor);
|
||||
SetFrom(&audio_network_adaptor_config, change.audio_network_adaptor_config);
|
||||
SetFrom(&init_recording_on_send, change.init_recording_on_send);
|
||||
|
@ -72,7 +71,6 @@ bool AudioOptions::operator==(const AudioOptions& o) const {
|
|||
o.audio_jitter_buffer_fast_accelerate &&
|
||||
audio_jitter_buffer_min_delay_ms ==
|
||||
o.audio_jitter_buffer_min_delay_ms &&
|
||||
combined_audio_video_bwe == o.combined_audio_video_bwe &&
|
||||
audio_network_adaptor == o.audio_network_adaptor &&
|
||||
audio_network_adaptor_config == o.audio_network_adaptor_config &&
|
||||
init_recording_on_send == o.init_recording_on_send;
|
||||
|
@ -97,7 +95,6 @@ std::string AudioOptions::ToString() const {
|
|||
audio_jitter_buffer_fast_accelerate);
|
||||
ToStringIfSet(&result, "audio_jitter_buffer_min_delay_ms",
|
||||
audio_jitter_buffer_min_delay_ms);
|
||||
ToStringIfSet(&result, "combined_audio_video_bwe", combined_audio_video_bwe);
|
||||
ToStringIfSet(&result, "audio_network_adaptor", audio_network_adaptor);
|
||||
ToStringIfSet(&result, "init_recording_on_send", init_recording_on_send);
|
||||
result << "}";
|
||||
|
|
|
@ -58,11 +58,6 @@ struct RTC_EXPORT AudioOptions {
|
|||
absl::optional<bool> audio_jitter_buffer_fast_accelerate;
|
||||
// Audio receiver jitter buffer (NetEq) minimum target delay in milliseconds.
|
||||
absl::optional<int> audio_jitter_buffer_min_delay_ms;
|
||||
// Enable combined audio+bandwidth BWE.
|
||||
// TODO(pthatcher): This flag is set from the
|
||||
// "googCombinedAudioVideoBwe", but not used anywhere. So delete it,
|
||||
// and check if any other AudioOptions members are unused.
|
||||
absl::optional<bool> combined_audio_video_bwe;
|
||||
// Enable audio network adaptor.
|
||||
// TODO(webrtc:11717): Remove this API in favor of adaptivePtime in
|
||||
// RtpEncodingParameters.
|
||||
|
|
|
@ -448,9 +448,6 @@ class RTC_EXPORT PeerConnectionInterface : public rtc::RefCountInterface {
|
|||
// when switching from a static scene to one with motion.
|
||||
absl::optional<int> screencast_min_bitrate;
|
||||
|
||||
// Use new combined audio/video bandwidth estimation?
|
||||
absl::optional<bool> combined_audio_video_bwe;
|
||||
|
||||
#if defined(WEBRTC_FUCHSIA)
|
||||
// TODO(bugs.webrtc.org/11066): Remove entirely once Fuchsia does not use.
|
||||
// TODO(bugs.webrtc.org/9891) - Move to crypto_options
|
||||
|
|
|
@ -303,7 +303,6 @@ bool PeerConnectionInterface::RTCConfiguration::operator==(
|
|||
int max_ipv6_networks;
|
||||
bool disable_link_local_networks;
|
||||
absl::optional<int> screencast_min_bitrate;
|
||||
absl::optional<bool> combined_audio_video_bwe;
|
||||
#if defined(WEBRTC_FUCHSIA)
|
||||
absl::optional<bool> enable_dtls_srtp;
|
||||
#endif
|
||||
|
@ -372,7 +371,6 @@ bool PeerConnectionInterface::RTCConfiguration::operator==(
|
|||
max_ipv6_networks == o.max_ipv6_networks &&
|
||||
disable_link_local_networks == o.disable_link_local_networks &&
|
||||
screencast_min_bitrate == o.screencast_min_bitrate &&
|
||||
combined_audio_video_bwe == o.combined_audio_video_bwe &&
|
||||
#if defined(WEBRTC_FUCHSIA)
|
||||
enable_dtls_srtp == o.enable_dtls_srtp &&
|
||||
#endif
|
||||
|
|
|
@ -1348,21 +1348,6 @@ TEST_P(PeerConnectionMediaTest, SetRemoteDescriptionFailsWithDuplicateMids) {
|
|||
"Failed to set remote offer sdp: Duplicate a=mid value 'same'.");
|
||||
}
|
||||
|
||||
TEST_P(PeerConnectionMediaTest,
|
||||
CombinedAudioVideoBweConfigPropagatedToMediaEngine) {
|
||||
RTCConfiguration config;
|
||||
config.combined_audio_video_bwe.emplace(true);
|
||||
auto caller = CreatePeerConnectionWithAudioVideo(config);
|
||||
|
||||
ASSERT_TRUE(caller->SetLocalDescription(caller->CreateOffer()));
|
||||
|
||||
auto caller_voice = caller->media_engine()->GetVoiceSendChannel(0);
|
||||
ASSERT_TRUE(caller_voice);
|
||||
const cricket::AudioOptions& audio_options = caller_voice->options();
|
||||
EXPECT_EQ(config.combined_audio_video_bwe,
|
||||
audio_options.combined_audio_video_bwe);
|
||||
}
|
||||
|
||||
// Test that if a RED codec refers to another codec in its fmtp line, but that
|
||||
// codec's payload type was reassigned for some reason (either the remote
|
||||
// endpoint selected a different payload type or there was a conflict), the RED
|
||||
|
|
|
@ -1326,8 +1326,6 @@ void SdpOfferAnswerHandler::Initialize(
|
|||
// RTCConfiguration value (not available on Web).
|
||||
video_options_.screencast_min_bitrate_kbps =
|
||||
configuration.screencast_min_bitrate.value_or(100);
|
||||
audio_options_.combined_audio_video_bwe =
|
||||
configuration.combined_audio_video_bwe;
|
||||
|
||||
audio_options_.audio_jitter_buffer_max_packets =
|
||||
configuration.audio_jitter_buffer_max_packets;
|
||||
|
|
|
@ -528,7 +528,6 @@ public class PeerConnection {
|
|||
public boolean enableCpuOveruseDetection;
|
||||
public boolean suspendBelowMinBitrate;
|
||||
@Nullable public Integer screencastMinBitrate;
|
||||
@Nullable public Boolean combinedAudioVideoBwe;
|
||||
// Use "Unknown" to represent no preference of adapter types, not the
|
||||
// preference of adapters of unknown types.
|
||||
public AdapterType networkPreference;
|
||||
|
@ -607,7 +606,6 @@ public class PeerConnection {
|
|||
enableCpuOveruseDetection = true;
|
||||
suspendBelowMinBitrate = false;
|
||||
screencastMinBitrate = null;
|
||||
combinedAudioVideoBwe = null;
|
||||
networkPreference = AdapterType.UNKNOWN;
|
||||
sdpSemantics = SdpSemantics.UNIFIED_PLAN;
|
||||
activeResetSrtpParams = false;
|
||||
|
@ -788,12 +786,6 @@ public class PeerConnection {
|
|||
return screencastMinBitrate;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@CalledByNative("RTCConfiguration")
|
||||
Boolean getCombinedAudioVideoBwe() {
|
||||
return combinedAudioVideoBwe;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
AdapterType getNetworkPreference() {
|
||||
return networkPreference;
|
||||
|
|
|
@ -260,8 +260,6 @@ void JavaToNativeRTCConfiguration(
|
|||
Java_RTCConfiguration_getSuspendBelowMinBitrate(jni, j_rtc_config);
|
||||
rtc_config->screencast_min_bitrate = JavaToNativeOptionalInt(
|
||||
jni, Java_RTCConfiguration_getScreencastMinBitrate(jni, j_rtc_config));
|
||||
rtc_config->combined_audio_video_bwe = JavaToNativeOptionalBool(
|
||||
jni, Java_RTCConfiguration_getCombinedAudioVideoBwe(jni, j_rtc_config));
|
||||
rtc_config->network_preference =
|
||||
JavaToNativeNetworkPreference(jni, j_network_preference);
|
||||
rtc_config->sdp_semantics = JavaToNativeSdpSemantics(jni, j_sdp_semantics);
|
||||
|
|
|
@ -117,8 +117,6 @@ const char MediaConstraints::kUseRtpMux[] = "googUseRtpMUX";
|
|||
const char MediaConstraints::kEnableDscp[] = "googDscp";
|
||||
const char MediaConstraints::kEnableVideoSuspendBelowMinBitrate[] =
|
||||
"googSuspendBelowMinBitrate";
|
||||
const char MediaConstraints::kCombinedAudioVideoBwe[] =
|
||||
"googCombinedAudioVideoBwe";
|
||||
const char MediaConstraints::kScreencastMinBitrate[] =
|
||||
"googScreencastMinBitrate";
|
||||
// TODO(ronghuawu): Remove once cpu overuse detection is stable.
|
||||
|
@ -162,9 +160,6 @@ void CopyConstraintsIntoRtcConfiguration(
|
|||
ConstraintToOptional<int>(constraints,
|
||||
MediaConstraints::kScreencastMinBitrate,
|
||||
&configuration->screencast_min_bitrate);
|
||||
ConstraintToOptional<bool>(constraints,
|
||||
MediaConstraints::kCombinedAudioVideoBwe,
|
||||
&configuration->combined_audio_video_bwe);
|
||||
}
|
||||
|
||||
void CopyConstraintsIntoAudioOptions(const MediaConstraints* constraints,
|
||||
|
|
|
@ -89,9 +89,6 @@ class MediaConstraints {
|
|||
static const char kEnableIPv6[]; // googIPv6
|
||||
// Temporary constraint to enable suspend below min bitrate feature.
|
||||
static const char kEnableVideoSuspendBelowMinBitrate[];
|
||||
// googSuspendBelowMinBitrate
|
||||
// Constraint to enable combined audio+video bandwidth estimation.
|
||||
static const char kCombinedAudioVideoBwe[]; // googCombinedAudioVideoBwe
|
||||
static const char kScreencastMinBitrate[]; // googScreencastMinBitrate
|
||||
static const char kCpuOveruseDetection[]; // googCpuOveruseDetection
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ bool Matches(const PeerConnectionInterface::RTCConfiguration& a,
|
|||
return a.audio_jitter_buffer_max_packets ==
|
||||
b.audio_jitter_buffer_max_packets &&
|
||||
a.screencast_min_bitrate == b.screencast_min_bitrate &&
|
||||
a.combined_audio_video_bwe == b.combined_audio_video_bwe &&
|
||||
a.media_config == b.media_config;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue