| Index: webrtc/api/peerconnectioninterface.h
|
| diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
|
| index 632fc3ca9f15b7146e32e17d33de2e7808e1e246..b01e42a83ba32a1f4a45b6c389297ad0802e614c 100644
|
| --- a/webrtc/api/peerconnectioninterface.h
|
| +++ b/webrtc/api/peerconnectioninterface.h
|
| @@ -89,6 +89,7 @@
|
| #include "webrtc/media/base/mediachannel.h"
|
| #include "webrtc/media/base/videocapturer.h"
|
| #include "webrtc/p2p/base/portallocator.h"
|
| +#include "webrtc/rtc_base/bitrateallocationstrategy.h"
|
| #include "webrtc/rtc_base/fileutils.h"
|
| #include "webrtc/rtc_base/network.h"
|
| #include "webrtc/rtc_base/rtccertificate.h"
|
| @@ -771,6 +772,16 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
|
| // to the provided value.
|
| virtual RTCError SetBitrate(const BitrateParameters& bitrate) = 0;
|
|
|
| + // SetBitrateAllocationStrategy sets current strategy. If not set default
|
| + // WebRTC allocator will be used. May be changed during an active session.
|
| + // Should be set to null before the strategy is destroyed. The strategy is
|
| + // owned by application and it is responsible for keeping it alive as long as
|
| + // any of its peerconnections are using it.
|
| + virtual RTCError SetBitrateAllocationStrategy(
|
| + 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;
|
|
|