Bug 244969

Summary: Remote candidate address is not present in getStats output when the candidate type is host
Product: WebKit Reporter: vinayak.kulkarni
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: youennf
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Here the remote candidate type is "host" - address field is not seen. none

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 ***