Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: webrtc/ortc/rtptransportcontrolleradapter.cc

Issue 2880323002: Move ownership of RtpTransportControllerSendInterface from Call to PeerConnection.
Patch Set: Delete shadowing member variables in BitrateEstimatorTest. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/ortc/rtptransportcontrolleradapter.h ('k') | webrtc/pc/peerconnection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/ortc/rtptransportcontrolleradapter.cc
diff --git a/webrtc/ortc/rtptransportcontrolleradapter.cc b/webrtc/ortc/rtptransportcontrolleradapter.cc
index b482e475fdd508f58da4753888cf6140bb9e580b..573d3198602f9fe897f13ed80130b37d1ffcad18 100644
--- a/webrtc/ortc/rtptransportcontrolleradapter.cc
+++ b/webrtc/ortc/rtptransportcontrolleradapter.cc
@@ -18,6 +18,8 @@
#include "webrtc/api/proxy.h"
#include "webrtc/base/checks.h"
+#include "webrtc/base/ptr_util.h"
+#include "webrtc/call/rtp_transport_controller_send.h"
#include "webrtc/media/base/mediaconstants.h"
#include "webrtc/ortc/ortcrtpreceiveradapter.h"
#include "webrtc/ortc/ortcrtpsenderadapter.h"
@@ -620,13 +622,17 @@ void RtpTransportControllerAdapter::Init_w() {
const int kStartBandwidthBps = 300000;
const int kMaxBandwidthBps = 2000000;
+ rtp_transport_controller_send_ = rtc::MakeUnique<RtpTransportControllerSend>(
+ Clock::GetRealTimeClock(), event_log_);
webrtc::Call::Config call_config(event_log_);
call_config.audio_state = channel_manager_->media_engine()->GetAudioState();
call_config.bitrate_config.min_bitrate_bps = kMinBandwidthBps;
call_config.bitrate_config.start_bitrate_bps = kStartBandwidthBps;
call_config.bitrate_config.max_bitrate_bps = kMaxBandwidthBps;
-
- call_.reset(webrtc::Call::Create(call_config));
+ call_config.audio_rtp_transport_send = rtp_transport_controller_send_.get();
+ call_config.video_rtp_transport_send = rtp_transport_controller_send_.get();
+ call_config.send_side_cc = rtp_transport_controller_send_->send_side_cc();
+ call_ = rtc::WrapUnique(webrtc::Call::Create(call_config));
}
void RtpTransportControllerAdapter::Close_w() {
« no previous file with comments | « webrtc/ortc/rtptransportcontrolleradapter.h ('k') | webrtc/pc/peerconnection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698