[Webkit-unassigned] [Bug 244970] New: Remote candidate address is not present in getStats output when the candidate type is host

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 9 06:23:28 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244970

            Bug ID: 244970
           Summary: Remote candidate address is not present in getStats
                    output when the candidate type is host
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vinayak.kulkarni at bluejeans.com
                CC: youennf at gmail.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220909/fc3ecef5/attachment.htm>


More information about the webkit-unassigned mailing list