I'm trying to use webrtc-java library to create a webrtc data channel between two peers.
- Relevant code
- Webrtc Logs
On execution and after calling connect() function of my class I'm observing the following happening:
- The offer is generated successfully, set as local description, and sent over to the peer.
- Peer answer is received successfully and set as remote description.
onIceCandidate() is never called by webrtc.
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