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

onIceCandidate() never gets called while trying to establish a connection

Open suyash192 opened this issue 2 months ago • 0 comments

I'm trying to use webrtc-java library to create a webrtc data channel between two peers.

  1. Relevant code
  2. Webrtc Logs

On execution and after calling connect() function of my class I'm observing the following happening:

  1. The offer is generated successfully, set as local description, and sent over to the peer.
  2. Peer answer is received successfully and set as remote description.
  3. onIceCandidate() is never called by webrtc.
  4. onRenegotiationNeeded() gets called instead.

I have set multiple STUN servers yet ICE candidates are never being generated.

Am I doing something wrong here?

Any help would be appreciated

suyash192 avatar Nov 05 '25 11:11 suyash192