NEW 244970
Remote candidate address is not present in getStats output when the candidate type is host
https://bugs.webkit.org/show_bug.cgi?id=244970
Summary Remote candidate address is not present in getStats output when the candidate...
vinayak.kulkarni
Reported 2022-09-09 06:23:28 PDT
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
Attachments
Here the candidate type is "host" and address field is not seen (76.70 KB, image/png)
2022-09-09 06:24 PDT, vinayak.kulkarni
no flags
Here the candidate type is "relay" and address of the candidate is seen correctly. (78.80 KB, image/png)
2022-09-09 06:25 PDT, vinayak.kulkarni
no flags
vinayak.kulkarni
Comment 1 2022-09-09 06:24:42 PDT
Created attachment 462227 [details] Here the candidate type is "host" and address field is not seen
vinayak.kulkarni
Comment 2 2022-09-09 06:25:47 PDT
Created attachment 462228 [details] Here the candidate type is "relay" and address of the candidate is seen correctly.
youenn fablet
Comment 3 2022-09-09 06:51:00 PDT
Yes, we are filtering all host local candidates since they might not always be known from the web page (in case IP addresses are replaced by mDNS). With our mDNS libwebrtc integration, we might be able to expose this field if stats appropriately use the mDNS names when needed in stats.
vinayak.kulkarni
Comment 4 2022-09-09 10:36:55 PDT
Hi youenn, Thanks for the info Is there any work around that you would suggest to get this working for now? Thanks, Vinayak
Alexey Proskuryakov
Comment 5 2022-09-09 19:14:27 PDT
*** Bug 244969 has been marked as a duplicate of this bug. ***
Radar WebKit Bug Importer
Comment 6 2022-09-16 06:24:17 PDT
Note You need to log in before you can comment on or make changes to this bug.