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

Issue 2618263004: webrtc-internals: show addIceCandidate when it fails (Closed)

Created:
3 years, 11 months ago by fippo
Modified:
3 years, 9 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

webrtc-internals: show addIceCandidate when it fails currently, webrtc-internals does not show addIceCandidate when the native addIceCandidate fails, it only shows the failure. It should show both since the addIceCandidate is called as well as the failure callback. BUG=677550

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M content/renderer/media/rtc_peer_connection_handler.cc View 1 chunk +5 lines, -0 lines 3 comments Download

Messages

Total messages: 10 (3 generated)
tommi (sloooow) - chröme
https://codereview.chromium.org/2618263004/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2618263004/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode1436 content/renderer/media/rtc_peer_connection_handler.cc:1436: // Ensure that addIceCandidate shows up even if there ...
3 years, 11 months ago (2017-01-09 14:41:17 UTC) #2
fippo
https://codereview.chromium.org/2618263004/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2618263004/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode1436 content/renderer/media/rtc_peer_connection_handler.cc:1436: // Ensure that addIceCandidate shows up even if there ...
3 years, 11 months ago (2017-01-09 15:09:32 UTC) #3
tommi (sloooow) - chröme
hta - wdyt?
3 years, 11 months ago (2017-01-16 08:34:59 UTC) #5
hta - Chromium
Need more explanation for why 2 lines are better than one. Perhaps a paste of ...
3 years, 11 months ago (2017-01-16 09:12:22 UTC) #6
fippo
> The original logic seemed to be that you logged either success or error. Why ...
3 years, 11 months ago (2017-01-16 09:45:15 UTC) #7
hta - Chromium
On 2017/01/16 09:45:15, fippo wrote: > > The original logic seemed to be that you ...
3 years, 11 months ago (2017-01-17 13:07:09 UTC) #8
fippo
3 years, 11 months ago (2017-01-22 13:08:21 UTC) #9
On 2017/01/17 13:07:09, hta - Chromium wrote:
> On 2017/01/16 09:45:15, fippo wrote:
> > > The original logic seemed to be that you logged either success or error.
Why
> > is
> > > it a good thing to log two lines, given that you include all the
information
> > > both times?
> > 
> > The issue I am trying to solve is that addIceCandidate/addIceCandidateFailed
> > behave differently from SRD/SLRD/createOffer/createAnswer
> > -- all of these have "line" in the trace for the call and another one for
the
> > succes/failure callback.
> > 
> > This difference in behaviour makes it (slighly) hard to interpret those logs
> > programatically.
> 
> Hm. If you want two lines per candidate for both directions of call, I think
you
> should add logging to accomplish exactly that.
> 
> As is, tracking is called from:
>
https://cs.chromium.org/chromium/src/content/renderer/media/rtc_peer_connecti...
> onIceCandidate, once
> 
>
https://cs.chromium.org/chromium/src/content/renderer/media/rtc_peer_connecti...
> addIceCandidate, once
> 
> If you want before/after logging (which I think makes a lot of sense), please
> add it to both places.

onicecandidate can't fail. But I think there are more changes required here.
The current failure would return just the same information instead of the error
string.
Which, arguably is not really useful either: "Error processing ICE candidate."
https://cs.chromium.org/chromium/src/content/renderer/media/rtc_peer_connecti...

I'll see if I can rework it so that this error is returned hoping that someone
will add more useful information there at some point.

Powered by Google App Engine
This is Rietveld 408576698