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

Issue 1788583004: Enable setting the maximum bitrate limit in RtpSender. (Closed)

Created:
4 years, 9 months ago by skvlad
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Enable setting the maximum bitrate limit in RtpSender. This change allows the application to limit the bitrate of the outgoing audio and video streams at runtime. The API roughly follows the WebRTC API draft, defining the RTCRtpParameters structure witn exactly one encoding (simulcast streams are not exposed in the API for now). (https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters) BUG= Committed: https://crrev.com/dc1c62cd30e42d5bc31db347126476ca8e1b6c58 Cr-Commit-Position: refs/heads/master@{#12025}

Patch Set 1 #

Total comments: 77

Patch Set 2 : Removed support for bitrate limits for audio streams; corrected code review issues #

Total comments: 14

Patch Set 3 : Simplified the logic in WebRtcVideoSendStream #

Patch Set 4 : Rebased on top of the latest master branch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -16 lines) Patch
M webrtc/api/api.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/mediastreamprovider.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
A + webrtc/api/rtpparameters.h View 1 1 chunk +14 lines, -4 lines 0 comments Download
M webrtc/api/rtpsender.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/api/rtpsender.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M webrtc/api/rtpsenderinterface.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M webrtc/api/rtpsenderreceiver_unittest.cc View 1 4 chunks +34 lines, -0 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 chunks +34 lines, -0 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 chunks +47 lines, -0 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 9 chunks +34 lines, -5 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M webrtc/media/base/mediaengine.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/media/base/mediaengine.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 5 chunks +15 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 5 chunks +57 lines, -5 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 2 chunks +92 lines, -0 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 chunks +50 lines, -2 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 3 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
skvlad
This change allows any WebRTC client application to control the maximum send bitrate for audio ...
4 years, 9 months ago (2016-03-12 00:21:04 UTC) #2
pthatcher1
I still need to check the unit tests. https://codereview.webrtc.org/1788583004/diff/1/webrtc/api/rtpparameters.h File webrtc/api/rtpparameters.h (right): https://codereview.webrtc.org/1788583004/diff/1/webrtc/api/rtpparameters.h#newcode19 webrtc/api/rtpparameters.h:19: namespace ...
4 years, 9 months ago (2016-03-12 01:21:04 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/1788583004/diff/1/webrtc/api/mediastreamprovider.h File webrtc/api/mediastreamprovider.h (right): https://codereview.webrtc.org/1788583004/diff/1/webrtc/api/mediastreamprovider.h#newcode66 webrtc/api/mediastreamprovider.h:66: virtual RTCRtpParameters GetAudioRtpParameters(uint32_t ssrc) = 0; Can probably make ...
4 years, 9 months ago (2016-03-12 01:57:07 UTC) #4
pthatcher1
https://codereview.webrtc.org/1788583004/diff/1/webrtc/api/rtpparameters.h File webrtc/api/rtpparameters.h (right): https://codereview.webrtc.org/1788583004/diff/1/webrtc/api/rtpparameters.h#newcode26 webrtc/api/rtpparameters.h:26: struct RTCRtpParameters { On 2016/03/12 01:57:06, Taylor Brandstetter wrote: ...
4 years, 9 months ago (2016-03-14 16:26:51 UTC) #5
skvlad
Removed changes related to AudioSendStream from this CL - I'll send them in a separate ...
4 years, 9 months ago (2016-03-15 21:18:19 UTC) #6
pthatcher1
Just one more simplification that I think we can make. https://codereview.webrtc.org/1788583004/diff/1/webrtc/media/base/mediachannel.h File webrtc/media/base/mediachannel.h (right): https://codereview.webrtc.org/1788583004/diff/1/webrtc/media/base/mediachannel.h#newcode84 ...
4 years, 9 months ago (2016-03-16 00:48:42 UTC) #7
skvlad
Simplified the logic in WebRtcVideoSendStream. https://codereview.webrtc.org/1788583004/diff/20001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1788583004/diff/20001/webrtc/media/engine/webrtcvideoengine2.cc#newcode801 webrtc/media/engine/webrtcvideoengine2.cc:801: bitrate_config_.min_bitrate_bps = max_global_bitrate; On ...
4 years, 9 months ago (2016-03-16 02:29:22 UTC) #8
pthatcher1
lgtm Very nice
4 years, 9 months ago (2016-03-16 04:46:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1788583004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1788583004/60001
4 years, 9 months ago (2016-03-17 00:46:52 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-17 02:07:48 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 02:07:57 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dc1c62cd30e42d5bc31db347126476ca8e1b6c58
Cr-Commit-Position: refs/heads/master@{#12025}

Powered by Google App Engine
This is Rietveld 408576698