Skip to content

add missing fields to candidate stats #611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 4, 2022
Merged

add missing fields to candidate stats #611

merged 3 commits into from
Oct 4, 2022

Conversation

fippo
Copy link
Contributor

@fippo fippo commented Nov 5, 2021

  • foundation
  • relatedAddress
  • relatedPort
  • usernameFragment
  • tcpType
    all of which are already defined for the ICE candidate object itself

Preview | Diff


Preview | Diff

@fippo
Copy link
Contributor Author

fippo commented Nov 8, 2021

@dontcallmedom can you generate an IPR link please and take a look at the respec woes? Worked with 27 here, breaks with 28 now. Probably need to blow some dust off ;-)

@henbos
Copy link
Collaborator

henbos commented Feb 22, 2022

Makes sense

@fippo
Copy link
Contributor Author

fippo commented Aug 15, 2022

actually the inconsistency is a bit bigger:
https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface
is missing: url, relayProtocol

https://w3c.github.io/webrtc-stats/#icecandidate-dict*
is missing: foundation, component, relatedAddress, relatedPort, usernameFragment

I don't have a use-case for the missing candidate stats (apart from making the grid in webrtc-internals nicer) but knowing the relayProtocol and url of a gathered candidate is potentially useful (see e.g. here)

Will update this after testing how hard that is to implement

@fippo
Copy link
Contributor Author

fippo commented Aug 15, 2022

aha... url is apparently surfaced in onicecandidate:
https://w3c.github.io/webrtc-pc/#rtcpeerconnectioniceevent
I don't think that is implemented by anyone even?

@fippo fippo changed the title RTCIceCandidate: add tcpType RTCIceCandidate: add missing fields to candidate stats Sep 26, 2022
@fippo fippo changed the title RTCIceCandidate: add missing fields to candidate stats add missing fields to candidate stats Sep 26, 2022
@fippo
Copy link
Contributor Author

fippo commented Sep 26, 2022

bump

Copy link
Contributor

@alvestrand alvestrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good enough to submit now.

fippo and others added 3 commits October 4, 2022 14:18
as as defined as in [webrtc-pc](https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-tcptype)

Not terribly important but i wanted it to show a nice candidate grid from statistics
@alvestrand alvestrand merged commit 4c62b10 into w3c:main Oct 4, 2022
ibaoger pushed a commit to ibaoger/webrtc that referenced this pull request Oct 4, 2022
added in w3c/webrtc-stats#611
* foundation
* relatedAddress
* relatedPort
* usernameFragment
* tcpType

BUG=webrtc:14480

Change-Id: I5f43373fbbc7c780b8dafb6e2ace2c27f5e22970
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276780
Reviewed-by: Harald Alvestrand <[email protected]>
Commit-Queue: Philipp Hancke <[email protected]>
Reviewed-by: Henrik Boström <[email protected]>
Cr-Commit-Position: refs/heads/main@{#38292}
@fippo fippo deleted the tcptype branch October 5, 2022 08:04
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 15, 2023
Upstream commit: https://webrtc.googlesource.com/src/+/0e3cd63062007d7c67e70eac7a45f29964d9c9aa
    stats: add missing ice candidate stats

    added in w3c/webrtc-stats#611
    * foundation
    * relatedAddress
    * relatedPort
    * usernameFragment
    * tcpType

    BUG=webrtc:14480

    Change-Id: I5f43373fbbc7c780b8dafb6e2ace2c27f5e22970
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276780
    Reviewed-by: Harald Alvestrand <[email protected]>
    Commit-Queue: Philipp Hancke <[email protected]>
    Reviewed-by: Henrik Boström <[email protected]>
    Cr-Commit-Position: refs/heads/main@{#38292}
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Feb 20, 2023
Upstream commit: https://webrtc.googlesource.com/src/+/0e3cd63062007d7c67e70eac7a45f29964d9c9aa
    stats: add missing ice candidate stats

    added in w3c/webrtc-stats#611
    * foundation
    * relatedAddress
    * relatedPort
    * usernameFragment
    * tcpType

    BUG=webrtc:14480

    Change-Id: I5f43373fbbc7c780b8dafb6e2ace2c27f5e22970
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276780
    Reviewed-by: Harald Alvestrand <[email protected]>
    Commit-Queue: Philipp Hancke <[email protected]>
    Reviewed-by: Henrik Boström <[email protected]>
    Cr-Commit-Position: refs/heads/main@{#38292}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants