I am using libjitsi / ice4j in my server application and would like to modify my local candidates before I call Agent.startConnectivityEstablishment(), is there a way to modify the priority or any other property to force prioritization of one candidate over another? For instance, I end up with these local candidates:
default candidate: candidate:1 1 udp 2130706431 192.168.122.15 5000 typ host
candidate:1 1 udp 2130706431 192.168.122.15 5000 typ host
candidate:2 1 udp 1694498815 24.234.1.1 5000 typ srflx raddr 192.168.122.15 rport 5000
I need the srflx candidate to be selected over the host candidate since it uses a private network address and cannot be reached from outside the network.
Both of the libraries are not documented well and there seems to be a lack of mutators on the objects in question, so any help would be appreciated.