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

@ -184,12 +184,14 @@ RTC_EXPORT
completionHandler:
(nullable void (^)(NSError * _Nullable error))completionHandler;
/** Updates bandwidth estimation parameters. Null parameters will be unchanged.
* Returns true iff the parameters were successfully updated.
/** Limits the bandwidth allocated for all RTP streams sent by this
* PeerConnection. Nil parameters will be unchanged. Setting
* |currentBitrateBps| will force the available bitrate estimate to the given
* value. Returns YES if the parameters were successfully updated.
*/
- (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;
/** Start or stop recording an Rtc EventLog. */
- (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath
@ -200,9 +202,8 @@ RTC_EXPORT
@interface RTCPeerConnection (Media)
/**
* Create an RTCRtpSender with the specified kind and media stream ID.
* See RTCMediaStreamTrack.h for available kinds.
/** Create an RTCRtpSender with the specified kind and media stream ID.
* See RTCMediaStreamTrack.h for available kinds.
*/
- (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId;