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

Issue 2951713002: RTCPeerConnection.addTrack and removeTrack added (behind flag) (Closed)

Created:
3 years, 6 months ago by hbos_chromium
Modified:
3 years, 5 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, haraken, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, posciak+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

RTCPeerConnection.addTrack and removeTrack added (behind flag). This allows a track to be added to a peerconnection with 0 or 1 associated streams. The multiple stream case is not yet supported. This allows tracks and streams to be attached to a peerconnection independently of add/removeStream and is a major milestone of the RTP Media API. The ontrack and onended events will be added/fire on the remote end in follow-up CLs. Spec: https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-removetrack BUG=700916, 705901 Review-Url: https://codereview.chromium.org/2951713002 Cr-Commit-Position: refs/heads/master@{#485264} Committed: https://chromium.googlesource.com/chromium/src/+/93aa0e383f74ed32072fedd74baf7a486dba5702

Patch Set 1 #

Total comments: 27

Patch Set 2 : Addressed guidou's comments #

Total comments: 11

Patch Set 3 : Addressed deadbeef's comments #

Total comments: 8

Patch Set 4 : Addressed deadbeef's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1011 lines, -73 lines) Patch
M chrome/browser/media/webrtc/webrtc_browsertest_base.h View 1 2 3 3 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_browsertest_base.cc View 1 2 3 3 chunks +96 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc View 1 2 3 2 chunks +230 lines, -0 lines 0 comments Download
M chrome/test/data/webrtc/munge_sdp.js View 1 2 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/test/data/webrtc/peerconnection.js View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/test/data/webrtc/peerconnection_rtp.js View 1 2 3 4 chunks +157 lines, -26 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/rtc_rtp_sender.h View 1 2 chunks +19 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc/rtc_rtp_sender.cc View 1 4 chunks +31 lines, -5 lines 0 comments Download
M content/shell/test_runner/mock_webrtc_peer_connection_handler.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/test_runner/mock_webrtc_peer_connection_handler.cc View 4 chunks +47 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-idl-expected.txt View 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/webrtc/interfaces-expected.txt View 3 chunks +7 lines, -7 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-AddRemoveTrack.html View 1 2 1 chunk +149 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getSenders.html View 10 chunks +29 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 chunks +71 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCRtpSender.cpp View 1 2 chunks +21 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupportWithWebRTC.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupportWithWebRTC.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h View 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 69 (55 generated)
hbos_chromium
Please take a look, guidou! :)
3 years, 5 months ago (2017-07-04 12:32:13 UTC) #40
Guido Urdaneta
Looking good. Havent't looked at the tests yet, but here are a few nits and ...
3 years, 5 months ago (2017-07-05 15:37:06 UTC) #43
Guido Urdaneta
https://codereview.chromium.org/2951713002/diff/320001/chrome/test/data/webrtc/peerconnection_rtp.js File chrome/test/data/webrtc/peerconnection_rtp.js (right): https://codereview.chromium.org/2951713002/diff/320001/chrome/test/data/webrtc/peerconnection_rtp.js#newcode133 chrome/test/data/webrtc/peerconnection_rtp.js:133: let audioSender = (!audioStream) why "(!audioStream)" and not just ...
3 years, 5 months ago (2017-07-06 09:49:57 UTC) #44
hbos_chromium
Please take a look, deadbeef. And PTAL guidou. deadbeef for test coverage. There are two ...
3 years, 5 months ago (2017-07-06 12:31:38 UTC) #48
Guido Urdaneta
lgtm % nit, but wait for deadbeef@'s review https://codereview.chromium.org/2951713002/diff/320001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2951713002/diff/320001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode1300 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:1300: // ...
3 years, 5 months ago (2017-07-06 12:43:42 UTC) #49
hbos_chromium
Please take a look jochen for content/shell/test_runner/mock_webrtc_peer_connection_handler.cc content/shell/test_runner/mock_webrtc_peer_connection_handler.h third_party/WebKit/Source/platform/testing/TestingPlatformSupportWithWebRTC.cpp third_party/WebKit/Source/platform/testing/TestingPlatformSupportWithWebRTC.h third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h
3 years, 5 months ago (2017-07-06 12:50:47 UTC) #51
jochen (gone - plz use gerrit)
lgtm
3 years, 5 months ago (2017-07-06 15:36:00 UTC) #52
hbos_chromium
PTAL deadbeef for tests :)
3 years, 5 months ago (2017-07-06 15:44:24 UTC) #53
Taylor_Brandstetter
Reviewed tests https://codereview.chromium.org/2951713002/diff/330001/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc File chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc (right): https://codereview.chromium.org/2951713002/diff/330001/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc#newcode82 chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc:82: EXPECT_NE("null", audio_stream_id); I think we should fix ...
3 years, 5 months ago (2017-07-06 22:45:15 UTC) #56
hbos_chromium
PTAL deadbeef https://codereview.chromium.org/2951713002/diff/330001/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc File chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc (right): https://codereview.chromium.org/2951713002/diff/330001/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc#newcode82 chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc:82: EXPECT_NE("null", audio_stream_id); On 2017/07/06 22:45:14, Taylor_Brandstetter wrote: ...
3 years, 5 months ago (2017-07-07 12:07:48 UTC) #59
Taylor_Brandstetter
lgtm with some minor comments about negotiationneeded https://codereview.chromium.org/2951713002/diff/330001/chrome/test/data/webrtc/peerconnection_rtp.js File chrome/test/data/webrtc/peerconnection_rtp.js (right): https://codereview.chromium.org/2951713002/diff/330001/chrome/test/data/webrtc/peerconnection_rtp.js#newcode137 chrome/test/data/webrtc/peerconnection_rtp.js:137: throw failTest('audioSender.track ...
3 years, 5 months ago (2017-07-07 19:44:14 UTC) #62
hbos_chromium
https://codereview.chromium.org/2951713002/diff/350001/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc File chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc (right): https://codereview.chromium.org/2951713002/diff/350001/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc#newcode84 chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc:84: WaitUntilOnNegotiationCountIs(left_tab_, 2); On 2017/07/07 19:44:13, Taylor_Brandstetter wrote: > Actually, ...
3 years, 5 months ago (2017-07-10 12:32:59 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2951713002/370001
3 years, 5 months ago (2017-07-10 12:33:21 UTC) #66
commit-bot: I haz the power
3 years, 5 months ago (2017-07-10 14:32:45 UTC) #69
Message was sent while issue was closed.
Committed patchset #4 (id:370001) as
https://chromium.googlesource.com/chromium/src/+/93aa0e383f74ed32072fedd74baf...

Powered by Google App Engine
This is Rietveld 408576698