Reland "Modify Bundle logic to not add & destroy extra transport at add-track"
This relands commit I41cae74605fecf454900a958776b95607ccf3745, after reverting it in order to merge the revert to M93 (the deadline for which is now exceeded). Original change description: > If a bundle is established, then per JSEP, the offerer is required to > include the new track in the bundle, and per BUNDLE, the answerer has > to either accept the track as part of the bundle or reject the track; > it cannot move it out of the group. So we will never need the transport. > > Bug: webrtc:12837 > Change-Id: I41cae74605fecf454900a958776b95607ccf3745 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/221601 > Reviewed-by: Henrik Boström <hbos@webrtc.org> > Commit-Queue: Harald Alvestrand <hta@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#34290} Bug: webrtc:12837 Change-Id: I30a8f03165ab797ed766b51c4eb15c2a9cecb5ed Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/228500 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34727}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
b7eb18da6e
commit
1c7ecefbe7
@ -17,6 +17,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@ -704,6 +705,11 @@ class PeerConnectionIntegrationWrapper : public webrtc::PeerConnectionObserver,
|
||||
audio_concealed_stat_ = *track_stats->concealed_samples;
|
||||
}
|
||||
|
||||
// Sets number of candidates expected
|
||||
void ExpectCandidates(int candidate_count) {
|
||||
candidates_expected_ = candidate_count;
|
||||
}
|
||||
|
||||
private:
|
||||
explicit PeerConnectionIntegrationWrapper(const std::string& debug_name)
|
||||
: debug_name_(debug_name) {}
|
||||
@ -1089,6 +1095,9 @@ class PeerConnectionIntegrationWrapper : public webrtc::PeerConnectionObserver,
|
||||
}
|
||||
}
|
||||
|
||||
// Check if we expected to have a candidate.
|
||||
EXPECT_GT(candidates_expected_, 1);
|
||||
candidates_expected_--;
|
||||
std::string ice_sdp;
|
||||
EXPECT_TRUE(candidate->ToString(&ice_sdp));
|
||||
if (signaling_message_receiver_ == nullptr || !signal_ice_candidates_) {
|
||||
@ -1172,6 +1181,9 @@ class PeerConnectionIntegrationWrapper : public webrtc::PeerConnectionObserver,
|
||||
peer_connection_signaling_state_history_;
|
||||
webrtc::FakeRtcEventLogFactory* event_log_factory_;
|
||||
|
||||
// Number of ICE candidates expected. The default is no limit.
|
||||
int candidates_expected_ = std::numeric_limits<int>::max();
|
||||
|
||||
// Variables for tracking delay stats on an audio track
|
||||
int audio_packets_stat_ = 0;
|
||||
double audio_delay_stat_ = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user