Ice4j - how do I get RemoteCandidates?

#1

Hi,
I am new with ice4j and trying to mimic IcePseudoTcp (https://github.com/jitsi/ice4j/blob/master/src/test/java/test/IcePseudoTcp.java) . As I understand, IcePseudoTcp creates the remote peer locally so it has all the info about RemoteCandidates. How do we get the RemoteCandidates in the real world when remote agent is truly remote? Is it even required to setDefaultRemoteCandidate in order to set up the communication channel with remote agent?

reference to the test code in github: https://github.com/jitsi/ice4j/blob/master/src/test/java/test/Ice.java#L82

0 Likes

#2

Hi,

You’re right that in this test it’s just a simplification. In the real world remote candidates are transferred over a signaling layer. For example SIP, XMPP or something else that can be used to establish a session between two endpoints.

0 Likes

#3

Thank you for your reply. If I understand correctly, the signaling layer is not included in ice4j, right? Where is the interface point with ice4j if I do signaling separately?

0 Likes