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

Issue 1854393002: Objective C API to read and set RtpParameters (Closed)

Created:
4 years, 8 months ago by skvlad
Modified:
4 years, 8 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

Objective C API to read and set RtpParameters This change adds the Objective C API functions to get and set RtpSender's RtpParameters, which allows setting bitrate limits for audio and video and turning off RtpSenders to pre-initialize the encoder. This CL adds only the smallest set of methods required to support bitrate limiting - there is no way to create an RtpSender, for example, or to set its track. The only supported functionality is this: RTCPeerConnection.senders - a read-only property returning the array of all RTCRtpSenders for the connection. RTCRtpSender.parameters - a read-only property returning the current parameters RTCRtpSender.setParameters: - a method to change the parameters. RTCRtpSender.track - a read-only property returning the RTCMediaStreamTrack corresponding to the sender. It is necessary to be able to identify RTCRtpSenders for video and audio. The track object is of the base RTCMediaStreamTrack type, not of the specific subclass for audio and video - just like it is in the Java API. BUG= Committed: https://crrev.com/79b4b8720d151a773a42212d52949e8604c258c5 Cr-Commit-Position: refs/heads/master@{#12297}

Patch Set 1 #

Total comments: 52

Patch Set 2 : Code review feedback; added comments on public methods #

Patch Set 3 : Added a missing blank line #

Total comments: 16

Patch Set 4 : Added equality comparison override #

Patch Set 5 : Rebase #

Total comments: 10

Patch Set 6 : CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -21 lines) Patch
M webrtc/api/BUILD.gn View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/api/api.gyp View 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCMediaStreamTrack.mm View 1 2 3 4 5 2 chunks +37 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCMediaStreamTrack+Private.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCPeerConnection.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCPeerConnection.mm View 1 2 chunks +13 lines, -0 lines 0 comments Download
A + webrtc/api/objc/RTCRtpEncodingParameters.h View 1 1 chunk +15 lines, -6 lines 0 comments Download
A webrtc/api/objc/RTCRtpEncodingParameters.mm View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
A webrtc/api/objc/RTCRtpEncodingParameters+Private.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A + webrtc/api/objc/RTCRtpParameters.h View 1 1 chunk +13 lines, -7 lines 0 comments Download
A webrtc/api/objc/RTCRtpParameters.mm View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A webrtc/api/objc/RTCRtpParameters+Private.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A webrtc/api/objc/RTCRtpSender.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A webrtc/api/objc/RTCRtpSender.mm View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A + webrtc/api/objc/RTCRtpSender+Private.h View 1 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
skvlad
This is the ObjC API for reading and writing RtpParameters; the CL does not include ...
4 years, 8 months ago (2016-04-05 01:54:25 UTC) #2
Taylor Brandstetter
https://codereview.webrtc.org/1854393002/diff/1/webrtc/api/objc/RTCPeerConnection.mm File webrtc/api/objc/RTCPeerConnection.mm (right): https://codereview.webrtc.org/1854393002/diff/1/webrtc/api/objc/RTCPeerConnection.mm#newcode319 webrtc/api/objc/RTCPeerConnection.mm:319: for (auto nativeSender : nativeSenders) { nit: I think ...
4 years, 8 months ago (2016-04-05 17:48:03 UTC) #3
tkchin_webrtc
Largely style nits. Ping me offline if you have other style questions. https://codereview.webrtc.org/1854393002/diff/1/webrtc/api/objc/RTCPeerConnection.h File webrtc/api/objc/RTCPeerConnection.h ...
4 years, 8 months ago (2016-04-05 18:48:16 UTC) #4
skvlad
Updated with code review feedback. I hope I didn't forget anything. I've also tested this ...
4 years, 8 months ago (2016-04-05 23:21:28 UTC) #5
Taylor Brandstetter
lgtm
4 years, 8 months ago (2016-04-06 01:03:28 UTC) #9
tkchin_webrtc
https://codereview.webrtc.org/1854393002/diff/100001/webrtc/api/api.gyp File webrtc/api/api.gyp (right): https://codereview.webrtc.org/1854393002/diff/100001/webrtc/api/api.gyp#newcode175 webrtc/api/api.gyp:175: 'objc/RTCRtpEncodingParameters+Private.h', add to GN file too https://codereview.webrtc.org/1854393002/diff/100001/webrtc/api/objc/RTCRtpEncodingParameters.mm File webrtc/api/objc/RTCRtpEncodingParameters.mm ...
4 years, 8 months ago (2016-04-06 22:04:49 UTC) #10
skvlad
Addressed code review comments. https://codereview.webrtc.org/1854393002/diff/100001/webrtc/api/api.gyp File webrtc/api/api.gyp (right): https://codereview.webrtc.org/1854393002/diff/100001/webrtc/api/api.gyp#newcode175 webrtc/api/api.gyp:175: 'objc/RTCRtpEncodingParameters+Private.h', On 2016/04/06 22:04:48, tkchin_webrtc ...
4 years, 8 months ago (2016-04-08 19:33:19 UTC) #11
tkchin_webrtc
lgtm https://codereview.webrtc.org/1854393002/diff/140001/webrtc/api/objc/RTCMediaStreamTrack.mm File webrtc/api/objc/RTCMediaStreamTrack.mm (right): https://codereview.webrtc.org/1854393002/diff/140001/webrtc/api/objc/RTCMediaStreamTrack.mm#newcode54 webrtc/api/objc/RTCMediaStreamTrack.mm:54: if (![object isKindOfClass:[RTCMediaStreamTrack class]]) { [object isMemberOfClass:[self class]]? ...
4 years, 8 months ago (2016-04-08 22:45:47 UTC) #12
skvlad
https://codereview.webrtc.org/1854393002/diff/140001/webrtc/api/objc/RTCMediaStreamTrack.mm File webrtc/api/objc/RTCMediaStreamTrack.mm (right): https://codereview.webrtc.org/1854393002/diff/140001/webrtc/api/objc/RTCMediaStreamTrack.mm#newcode54 webrtc/api/objc/RTCMediaStreamTrack.mm:54: if (![object isKindOfClass:[RTCMediaStreamTrack class]]) { On 2016/04/08 22:45:46, tkchin_webrtc ...
4 years, 8 months ago (2016-04-08 23:23:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854393002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854393002/180001
4 years, 8 months ago (2016-04-09 00:09:50 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 8 months ago (2016-04-09 00:28:59 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 00:29:07 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/79b4b8720d151a773a42212d52949e8604c258c5
Cr-Commit-Position: refs/heads/master@{#12297}

Powered by Google App Engine
This is Rietveld 408576698