| 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: | RESOLVED DUPLICATE | ||||||
| Severity: | Normal | CC: | youennf | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
*** This bug has been marked as a duplicate of bug 244970 *** |
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