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

Unified Diff: webrtc/pc/peerconnection.cc

Issue 2996643002: BWE allocation strategy
Patch Set: Comments handling Created 3 years, 3 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/pc/peerconnection.h ('k') | webrtc/rtc_base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/peerconnection.cc
diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc
index d975ed9ad40170d5a61236a19f57358ef9372db6..beacd1b5bdfbb4c97780d33f83819b5bf9535086 100644
--- a/webrtc/pc/peerconnection.cc
+++ b/webrtc/pc/peerconnection.cc
@@ -1285,6 +1285,19 @@ RTCError PeerConnection::SetBitrate(const BitrateParameters& bitrate) {
return RTCError::OK();
}
+RTCError PeerConnection::SetBitrateAllocationStrategy(
+ rtc::BitrateAllocationStrategy* bitrate_allocation_strategy) {
+ rtc::Thread* worker_thread = factory_->worker_thread();
+ if (!worker_thread->IsCurrent()) {
+ return worker_thread->Invoke<RTCError>(
+ RTC_FROM_HERE, rtc::Bind(&PeerConnection::SetBitrateAllocationStrategy,
+ this, bitrate_allocation_strategy));
+ }
+ RTC_DCHECK(call_.get());
+ call_->SetBitrateAllocationStrategy(bitrate_allocation_strategy);
+ return RTCError::OK();
+}
+
bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file,
int64_t max_size_bytes) {
return factory_->worker_thread()->Invoke<bool>(
« no previous file with comments | « webrtc/pc/peerconnection.h ('k') | webrtc/rtc_base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698