| Summary: | Remote candidate address is not present in getStats output when the candidate type is host | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | vinayak.kulkarni | ||||||
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | NEW --- | ||||||||
| Severity: | Normal | CC: | webkit-bug-importer, youennf | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 15 | ||||||||
| Hardware: | Mac (Intel) | ||||||||
| OS: | macOS 12 | ||||||||
| Attachments: |
|
||||||||
Created attachment 462227 [details]
Here the candidate type is "host" and address field is not seen
Created attachment 462228 [details]
Here the candidate type is "relay" and address of the candidate is seen correctly.
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. Hi youenn, Thanks for the info Is there any work around that you would suggest to get this working for now? Thanks, Vinayak *** Bug 244969 has been marked as a duplicate of this bug. *** |
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