Bug 244969 - Remote candidate address is not present in getStats output when the candidate type is host
Summary: Remote candidate address is not present in getStats output when the candidate...
Status: RESOLVED DUPLICATE of bug 244970
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-09 06:22 PDT by vinayak.kulkarni
Modified: 2022-09-09 19:14 PDT (History)
1 user (show)

See Also:


Attachments
Here the remote candidate type is "host" - address field is not seen. (76.70 KB, image/png)
2022-09-09 06:22 PDT, vinayak.kulkarni
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description vinayak.kulkarni 2022-09-09 06:22:28 PDT
Created attachment 462226 [details]
Here the remote candidate type is "host" - address field is not seen.

Not seeing the address field in remote-candidate when the candidate type is "host". The same is working fine when the candidate type is "relay"

Below is the code snippet used to fetch the stats

var stats = await pc.getStats();
var selectedPair;
stats.forEach(function(stat) {
    if(stat.type === "transport") {
        selectedPair = stats.get(stat.selectedCandidatePairId);
    }
});
var localCandidate = stats.get(selectedPair.localCandidateId);
var remoteCandidate = stats.get(selectedPair.remoteCandidateId);

Please see the screenshot below
Comment 1 Alexey Proskuryakov 2022-09-09 19:14:27 PDT

*** This bug has been marked as a duplicate of bug 244970 ***