Search code examples
androidreact-nativewebrtcortc

Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification


In order to communicate with Browser Edge we need to set a=end-of-candidates as you can see here . Edge to Edge and Edge to other browser its working fine. Even I am able to communicate React Native app with Chrome but for edge I need to specify this value inside my app sdp before sending to the Edge browser. Please let me know how can I achieve this sdp?

You can see this PR of AdpaterJS as edge giving this error upon receiving the sdp from react native android app Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification. Let me know if you required more information.

  • React Native version: 0.56.0
  • Plugin version: 1.63,0
  • OS: Android
  • OS version:Nugat

Solution

  • Edge requires a call addIceCandidate(null) when all remote candidates have been added. If you don't do that this will happen automagically after 3-4 seconds, but that increases the chance of failure.