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

Unified Diff: webrtc/api/peerconnectioninterface.h

Issue 2996643002: BWE allocation strategy
Patch Set: BWE allocation strategy Created 3 years, 4 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 | « no previous file | webrtc/api/peerconnectionproxy.h » ('j') | webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnectioninterface.h
diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
index ee0121246de51b8670d350c678ab8fd1d35f7952..1c028bf6a1280844b655c258c8bdfae44d229b84 100644
--- a/webrtc/api/peerconnectioninterface.h
+++ b/webrtc/api/peerconnectioninterface.h
@@ -84,6 +84,7 @@
#include "webrtc/api/stats/rtcstatscollectorcallback.h"
#include "webrtc/api/statstypes.h"
#include "webrtc/api/umametrics.h"
+#include "webrtc/base/bitrateallocationstrategy.h"
#include "webrtc/base/fileutils.h"
#include "webrtc/base/network.h"
#include "webrtc/base/rtccertificate.h"
@@ -759,6 +760,13 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
return RTCError::OK();
}
+ // SetBitrateAllocationStrategy sets current strategy. If not set default
+ // WEBRTC allocator will be used. May be changed during an active session.
+ virtual RTCError SetBitrateAllocationStrategy(
stefan-webrtc 2017/08/14 07:46:03 I would prefer if we could pass the allocation str
alexnarest 2017/08/15 06:02:36 Helper would let users to change strategies during
+ rtc::BitrateAllocationStrategy* bitrate_allocation_strategy) {
+ return RTCError(RTCErrorType::UNSUPPORTED_OPERATION);
+ }
+
// Returns the current SignalingState.
virtual SignalingState signaling_state() = 0;
virtual IceConnectionState ice_connection_state() = 0;
« no previous file with comments | « no previous file | webrtc/api/peerconnectionproxy.h » ('j') | webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698