usernameFragment Examples section contains method that does not exist #28171
Labels
area: WebRTC
Needs help from someone with WebRTC domain knowledge
Content:WebAPI
Web API docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/usernameFragment
What specific section or headline is this issue about?
Examples
What information was incorrect, unhelpful, or incomplete?
Method getParameters() specified in the Examples section does not exist.
What did you expect to see?
I expected to find a method allowing me to compare usernameFragment between incoming ICE candidates and existing RTCPeerConnection.
Do you have any supporting links, references, or citations?
None
Do you have anything more you want to share?
It is possible to get around this issue by reading the sdp of remoteDescription directly and using regular expressions. Connection in the given example refers to an instance of a RTCPeerConnection. Result usernameFragment is equal to usernameFragment for the RTCPeerConnection and it can be compared with incoming ICE candidates' usernameFragment.
MDN metadata
Page report details
en-us/web/api/rtcicecandidate/usernamefragment
The text was updated successfully, but these errors were encountered: