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

Issue 2505173002: Added a callback function OnAddTrack to PeerConnectionObserver (Closed)

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

Description

Added a callback function OnAddTrack to PeerConnectionObserver Added the callback in native c++ API. The callback function is called when a track is added and a new RtpReceiver is created. The application can tell when tracks are added to the streams by listening to this callback. BUG=webrtc:6112 Committed: https://crrev.com/81c3a0300486f49ca5dae5c0a7f50ae858dd78fa Cr-Commit-Position: refs/heads/master@{#15142}

Patch Set 1 : Add a callback function to PeerConnectionObserver. #

Patch Set 2 : Simple change on java and obj-c. #

Total comments: 11

Patch Set 3 : CR comments. Remove unrelated file changes. #

Total comments: 8

Patch Set 4 : CR comments. Remove unrelated file changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -14 lines) Patch
M webrtc/api/peerconnection.cc View 1 chunk +15 lines, -6 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 7 chunks +53 lines, -8 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
Taylor Brandstetter
Looks great. I just noticed a couple minor things; mainly that the new method can't ...
4 years, 1 month ago (2016-11-17 00:34:23 UTC) #8
honghaiz3
Thanks for figuring this out!
4 years, 1 month ago (2016-11-17 01:10:56 UTC) #11
honghaiz3
https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc#newcode1430 webrtc/api/peerconnection.cc:1430: streams.push_back(rtc::scoped_refptr<MediaStreamInterface>(stream)); Is there any reason to use a vector ...
4 years, 1 month ago (2016-11-17 01:19:02 UTC) #12
Zhi Huang
I removed all the unnecessary code changes since we have a default implementation. Please take ...
4 years, 1 month ago (2016-11-17 01:42:06 UTC) #20
honghaiz3
https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc#newcode1431 webrtc/api/peerconnection.cc:1431: observer_->OnAddTrack(receiver, streams); Should we just get the track from ...
4 years, 1 month ago (2016-11-17 01:52:31 UTC) #23
honghaiz3
On 2016/11/17 01:52:31, honghaiz3 wrote: > https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc > File webrtc/api/peerconnection.cc (right): > > https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc#newcode1431 > ...
4 years, 1 month ago (2016-11-17 01:56:09 UTC) #24
Taylor Brandstetter
lgtm https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/2505173002/diff/80001/webrtc/api/peerconnection.cc#newcode1430 webrtc/api/peerconnection.cc:1430: streams.push_back(rtc::scoped_refptr<MediaStreamInterface>(stream)); On 2016/11/17 01:42:06, Zhi Huang wrote: > ...
4 years, 1 month ago (2016-11-17 02:07:25 UTC) #25
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/2505173002/130001
4 years, 1 month ago (2016-11-17 19:55:31 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:130001)
4 years, 1 month ago (2016-11-17 20:06:37 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 20:07:42 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/81c3a0300486f49ca5dae5c0a7f50ae858dd78fa
Cr-Commit-Position: refs/heads/master@{#15142}

Powered by Google App Engine
This is Rietveld 408576698