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

Issue 2877933004: objc wrapper for PeerConnection::SetBitrate (Closed)

Created:
3 years, 7 months ago by Zach Stein
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com, kwiberg-webrtc, magjed_webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

objc wrapper for PeerConnection::SetBitrate BUG=webrtc:7395 Review-Url: https://codereview.webrtc.org/2877933004 Cr-Commit-Position: refs/heads/master@{#19294} Committed: https://chromium.googlesource.com/external/webrtc/+/03adb7c6dc791e36c7096ce94299975281902506

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove native stub now that the real implementation has been submitted. #

Total comments: 2

Patch Set 3 : Document return value of SetBitrate and rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h View 1 2 1 chunk +7 lines, -0 lines 1 comment Download
M webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm View 1 2 1 chunk +8 lines, -0 lines 1 comment Download

Messages

Total messages: 21 (12 generated)
Zach Stein
https://codereview.webrtc.org/2877933004/diff/1/webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm File webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm (right): https://codereview.webrtc.org/2877933004/diff/1/webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm#newcode63 webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm:63: EXPECT_TRUE([peerConnection setBitrate:nullptr toCurrent:nullptr toMax:nullptr]); Maybe [peerConnection setBitrateMinBpsTo:x currentBpsTo:y maxBpsTo:z] ...
3 years, 7 months ago (2017-05-12 20:27:05 UTC) #1
Zach Stein
PTAL
3 years, 4 months ago (2017-08-01 19:04:44 UTC) #8
Zach Stein
On 2017/08/01 19:04:44, Zach Stein wrote: > PTAL Friendly ping :)
3 years, 4 months ago (2017-08-07 18:54:59 UTC) #10
daniela-webrtc
LGTM with one small comment https://codereview.webrtc.org/2877933004/diff/20001/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h (right): https://codereview.webrtc.org/2877933004/diff/20001/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h#newcode187 webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h:187: /** Updates bandwidth estimation ...
3 years, 4 months ago (2017-08-09 08:01:38 UTC) #11
Zach Stein
https://codereview.webrtc.org/2877933004/diff/20001/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h (right): https://codereview.webrtc.org/2877933004/diff/20001/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h#newcode187 webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h:187: /** Updates bandwidth estimation parameters. Null parameters will be ...
3 years, 4 months ago (2017-08-09 20:45:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2877933004/40001
3 years, 4 months ago (2017-08-09 20:45:50 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/03adb7c6dc791e36c7096ce94299975281902506
3 years, 4 months ago (2017-08-09 21:29:54 UTC) #18
tkchin_webrtc
https://codereview.webrtc.org/2877933004/diff/40001/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h (right): https://codereview.webrtc.org/2877933004/diff/40001/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h#newcode190 webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h:190: - (BOOL)setBitrateToMin:(NSNumber *_Nullable)minBitrateBps Could you update this with more ...
3 years, 3 months ago (2017-08-31 21:20:48 UTC) #20
Zach Stein
3 years, 3 months ago (2017-09-05 20:44:55 UTC) #21
Message was sent while issue was closed.
On 2017/08/31 21:20:48, tkchin_webrtc wrote:
>
https://codereview.webrtc.org/2877933004/diff/40001/webrtc/sdk/objc/Framework...
> File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h (right):
> 
>
https://codereview.webrtc.org/2877933004/diff/40001/webrtc/sdk/objc/Framework...
> webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h:190: -
> (BOOL)setBitrateToMin:(NSNumber *_Nullable)minBitrateBps
> Could you update this with more details?
> 
> What bitrate is this? Data channel / video / audio?
> Is this specific to bandwidth estimation only?
> What does it mean to set the current bwe bitrate? Does that mean we are
> disregarding stuff from the estimator?
> 
> Comment nit: "Nil parameters", Returns YES
> 
> also style nit: can we update the naming to not repeat "to", and make sure the
> argument name matches the method name?
> 
> arg nit: use (nullable NSNumber *) instead
> 
> setBweMinBitrateBps:minBitrateBps
> currentBitrateBps:currentBitrateBps
> maxBitrateBps:maxBitrateBps
> 
>
https://codereview.webrtc.org/2877933004/diff/40001/webrtc/sdk/objc/Framework...
> File webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm (right):
> 
>
https://codereview.webrtc.org/2877933004/diff/40001/webrtc/sdk/objc/Framework...
> webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm:68:
> toMax:nullptr]);
> nil not nullptr
> 
> nil is for objc objects and means (id)0
> nullptr is for C++ objects and means (void *)0

Addressed here: https://codereview.chromium.org/3011013002/

Powered by Google App Engine
This is Rietveld 408576698