Improve the style of the objc wrapper for PeerConnectionInterface::SetBitrate.

BUG=webrtc:7395

Review-Url: https://codereview.webrtc.org/3011013002
Cr-Commit-Position: refs/heads/master@{#19697}
This commit is contained in:
zstein
2017-09-05 14:43:03 -07:00
committed by Commit Bot
parent e5abac443a
commit 8b476173d8
3 changed files with 18 additions and 17 deletions

View File

@ -369,9 +369,9 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved(
_peerConnection->SetRemoteDescription(observer, sdp.nativeDescription);
}
- (BOOL)setBitrateToMin:(NSNumber *_Nullable)minBitrateBps
toCurrent:(NSNumber *_Nullable)currentBitrateBps
toMax:(NSNumber *_Nullable)maxBitrateBps {
- (BOOL)setBweMinBitrateBps:(nullable NSNumber *)minBitrateBps
currentBitrateBps:(nullable NSNumber *)currentBitrateBps
maxBitrateBps:(nullable NSNumber *)maxBitrateBps {
webrtc::PeerConnectionInterface::BitrateParameters params;
if (minBitrateBps != nil) {
params.min_bitrate_bps = rtc::Optional<int>(minBitrateBps.intValue);