0

I have two different WebRTC clients: an Android device and an angular application. I set up a turn and stun server and both seems to work with the trickle ice tester and the webrtc tester.

As you can see here:

trickle ice results

webrtc test results

But all ice candidates fail in Firefox when I am watching the candidates in about:webrtc. ice candidates in Firefox

Does anyone have an explanation for this?
More info:

Nick_vL
  • 13
  • 7
  • 1
    The log is what will help to find the reason. But the log your posted here contains several test runs, which are hard to distinguish. If you could press the "clear log" button, then do only a single test run and post the resulting log again, that could help finding the problem. – Nils Ohlmeier Jun 30 '21 at 17:41
  • @NilsOhlmeier I updated the firefox log and added the coturn logs for additional info. Thank you in advance for your help. – Nick_vL Jun 30 '21 at 18:57

1 Answers1

0

There was a simple error in my Android app. When receiving an ice candidate from the signaling server I did the following:

peerConnection.AddIceCandidate(new IceCandidate(sdpCandidate, sdpMLineIndex, sdpMid));

But as the documentation states you have to create an ice candidate in this order:

public IceCandidate(string sdpMid, int sdpMLineIndex, string sdp);

So I turned the sdpCandidate and sdpMid around to fix the issue.

peerConnection.AddIceCandidate(new IceCandidate(sdpMid, sdpMLineIndex, sdpCandidate));
Nick_vL
  • 13
  • 7