webrtc-interface icon indicating copy to clipboard operation
webrtc-interface copied to clipboard

Add `usernameFragment` in `RTCIceCandidate`?

Open samrat opened this issue 1 year ago • 0 comments

Hello,

I'm trying to use flutter-webrtc with ex_webrtc.

ex_webrtc seems to expect usernameFragment to be part of the ICE candidate: https://github.com/elixir-webrtc/ex_webrtc/blob/2ef1582fd4436ccbe4f29db9ea3329c59a62f276/lib/ex_webrtc/ice_candidate.ex#L21

And from https://www.w3.org/TR/webrtc/#rtcicecandidate-interface, it sounds like the field is supposed to be present:

Other than candidate, sdpMid, sdpMLineIndex, and usernameFragment, the remaining attributes are derived from parsing the candidate member in candidateInitDict, if it is well formed.

Is there a way to pass the usernameFragment as part of the ICE candidate? Since I'm new to WebRTC: should flutter-webrtc be sending this field(or perhaps it's ex_webrtc's behaviour that should be adjusted)?

samrat avatar Dec 28 '24 21:12 samrat