| Index: webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm
|
| diff --git a/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm b/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm
|
| index 1709047e2b1a8a937472eaae33c53de9a0fc1d9e..2fefef82cc40684762be86d8c76b5cba669356f7 100644
|
| --- a/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm
|
| +++ b/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm
|
| @@ -21,6 +21,7 @@
|
| #import "RTCRtpReceiver+Private.h"
|
| #import "RTCRtpSender+Private.h"
|
| #import "RTCSessionDescription+Private.h"
|
| +#import "WebRTC/RTCBitrateAllocationStrategy.h"
|
| #import "WebRTC/RTCLogging.h"
|
|
|
| #include <memory>
|
| @@ -410,6 +411,14 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved(
|
| _hasStartedRtcEventLog = NO;
|
| }
|
|
|
| +- (void)setBitrateAllocationStrategy:
|
| + (RTCBitrateAllocationStrategy *_Nullable)bitrateAllocationStrategy {
|
| + if (bitrateAllocationStrategy)
|
| + _peerConnection->SetBitrateAllocationStrategy(bitrateAllocationStrategy.strategy);
|
| + else
|
| + _peerConnection->SetBitrateAllocationStrategy(nullptr);
|
| +}
|
| +
|
| - (RTCRtpSender *)senderWithKind:(NSString *)kind
|
| streamId:(NSString *)streamId {
|
| std::string nativeKind = [NSString stdStringForString:kind];
|
|
|