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

Issue 2991693002: Adding support for Unified Plan offer/answer negotiation. (Closed)

Created:
3 years, 5 months ago by Zhi Huang
Modified:
3 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Relanding: Adding support for Unified Plan offer/answer negotiation to the mediasession layer. This layer takes in a simplified "options" struct and the current local description, and generates a new offer/answer. Previously the options struct assumed there would only be one media description per media type (audio/video), but it now supports N number of audio/video descriptions. The |add_legacy_stream| options is removed from the mediasession.cc/.h in this CL. The next step is to add the ability for PeerConnection/WebRtcSession to create "options" to represent multiple RtpTransceivers, and apply the Unified Plan descriptions correctly. Right now, only Plan B descriptions will be generated in unit tests. BUG=chromium:465349 Review-Url: https://codereview.webrtc.org/2991693002 Cr-Original-Commit-Position: refs/heads/master@{#19343} Committed: https://chromium.googlesource.com/external/webrtc/+/a77e6bbd30276bdc5b30f2cbc1e92ca181ae76f0 Review-Url: https://codereview.webrtc.org/2991693002 Cr-Commit-Position: refs/heads/master@{#19394} Committed: https://chromium.googlesource.com/external/webrtc/+/1c378ed83b5b32a00368bbfc3ce2ee7687691abe

Patch Set 1 #

Patch Set 2 : Clean up. #

Total comments: 106

Patch Set 3 : address review comments #

Total comments: 4

Patch Set 4 : More tests. #

Total comments: 73

Patch Set 5 : Review comments. #

Total comments: 14

Patch Set 6 : Responded the comments. #

Patch Set 7 : Fix the tests in Chrommium. #

Patch Set 8 : Fix the internal issue. #

Patch Set 9 : Minor fix. #

Patch Set 10 : Fix the chromium win-clang bulid by replacing int with Optional<size_t>. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2710 lines, -1639 lines) Patch
M webrtc/pc/mediasession.h View 1 2 3 4 7 chunks +122 lines, -110 lines 0 comments Download
M webrtc/pc/mediasession.cc View 1 2 3 4 5 6 24 chunks +757 lines, -559 lines 0 comments Download
M webrtc/pc/mediasession_unittest.cc View 1 2 3 4 5 6 7 8 101 chunks +813 lines, -350 lines 0 comments Download
M webrtc/pc/peerconnection.h View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -34 lines 0 comments Download
M webrtc/pc/peerconnection.cc View 1 2 3 4 5 6 7 8 9 8 chunks +301 lines, -212 lines 0 comments Download
M webrtc/pc/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 4 chunks +270 lines, -173 lines 0 comments Download
M webrtc/pc/webrtcsession_unittest.cc View 1 2 3 4 5 61 chunks +384 lines, -157 lines 0 comments Download
M webrtc/pc/webrtcsessiondescriptionfactory.cc View 8 chunks +46 lines, -44 lines 0 comments Download

Messages

Total messages: 87 (68 generated)
Zhi Huang
PTAL. More tests could be added but I think this should be OK for the ...
3 years, 4 months ago (2017-07-27 00:15:58 UTC) #8
Taylor Brandstetter
I've only reviewed the mediasession part so far, but I'm sending out my comments now ...
3 years, 4 months ago (2017-07-28 01:19:40 UTC) #9
Taylor Brandstetter
https://codereview.webrtc.org/2991693002/diff/120001/webrtc/pc/mediasession.cc File webrtc/pc/mediasession.cc (right): https://codereview.webrtc.org/2991693002/diff/120001/webrtc/pc/mediasession.cc#newcode1374 webrtc/pc/mediasession.cc:1374: // This restriction doesn't exist before. On 2017/07/28 01:19:38, ...
3 years, 4 months ago (2017-07-28 01:23:14 UTC) #10
Taylor Brandstetter
Finished reviewing rest of files. I'm pretty confused by the WebRtcSession test infrastructure, but I ...
3 years, 4 months ago (2017-07-28 19:00:27 UTC) #11
Zhi Huang
PTAL. https://codereview.webrtc.org/2991693002/diff/120001/webrtc/pc/mediasession.cc File webrtc/pc/mediasession.cc (left): https://codereview.webrtc.org/2991693002/diff/120001/webrtc/pc/mediasession.cc#oldcode449 webrtc/pc/mediasession.cc:449: if (streams.empty() && add_legacy_stream) { On 2017/07/28 01:19:38, ...
3 years, 4 months ago (2017-08-02 04:38:37 UTC) #17
Taylor Brandstetter
It looks like all my comments were addressed, so I think all that's left to ...
3 years, 4 months ago (2017-08-03 00:24:48 UTC) #18
Zhi Huang
PTAL. https://codereview.webrtc.org/2991693002/diff/180001/webrtc/pc/mediasession_unittest.cc File webrtc/pc/mediasession_unittest.cc (right): https://codereview.webrtc.org/2991693002/diff/180001/webrtc/pc/mediasession_unittest.cc#newcode244 webrtc/pc/mediasession_unittest.cc:244: // MIDs are not the identification of the ...
3 years, 4 months ago (2017-08-04 18:38:26 UTC) #21
Taylor Brandstetter
Did one last full review. Just some nits and minor comments about test helper methods. ...
3 years, 4 months ago (2017-08-05 00:39:10 UTC) #22
Zhi Huang
PTAL. Thanks. https://codereview.webrtc.org/2991693002/diff/240001/webrtc/pc/mediasession.cc File webrtc/pc/mediasession.cc (right): https://codereview.webrtc.org/2991693002/diff/240001/webrtc/pc/mediasession.cc#newcode194 webrtc/pc/mediasession.cc:194: } On 2017/08/05 00:39:08, Taylor Brandstetter wrote: ...
3 years, 4 months ago (2017-08-09 00:54:52 UTC) #25
Taylor Brandstetter
lgtm, though I still have minor concerns about the code that builds the audio codec ...
3 years, 4 months ago (2017-08-09 17:05:12 UTC) #26
Zhi Huang
I have some updates on the CL. You might want to take a look. https://codereview.webrtc.org/2991693002/diff/300001/webrtc/p2p/base/sessiondescription.h ...
3 years, 4 months ago (2017-08-09 21:51:02 UTC) #28
Taylor Brandstetter
Patch set 6 lgtm!
3 years, 4 months ago (2017-08-09 22:30:58 UTC) #31
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/2991693002/500001
3 years, 4 months ago (2017-08-15 00:44:07 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/20160)
3 years, 4 months ago (2017-08-15 00:48:56 UTC) #64
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/2991693002/500001
3 years, 4 months ago (2017-08-15 00:55:55 UTC) #66
commit-bot: I haz the power
Committed patchset #9 (id:500001) as https://chromium.googlesource.com/external/webrtc/+/a77e6bbd30276bdc5b30f2cbc1e92ca181ae76f0
3 years, 4 months ago (2017-08-15 01:18:18 UTC) #69
olka_webrtc
A revert of this CL (patchset #9 id:500001) has been created in https://codereview.webrtc.org/3001083002/ by olka@webrtc.org. ...
3 years, 4 months ago (2017-08-17 11:33:16 UTC) #70
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/2991693002/540001
3 years, 4 months ago (2017-08-17 21:08:28 UTC) #84
commit-bot: I haz the power
3 years, 4 months ago (2017-08-17 21:11:00 UTC) #87
Message was sent while issue was closed.
Committed patchset #10 (id:540001) as
https://chromium.googlesource.com/external/webrtc/+/1c378ed83b5b32a00368bbfc3...

Powered by Google App Engine
This is Rietveld 408576698