Open Vivektilva opened 6 years ago
Hello vivek Do you solved the issue yet .. I am also stuck on the same problem
ya instead of using API call , use static server detail.
Can you please explain in some details Static server means which server .. On that we are using socket implementation ?
when you register your acc for stun and turn server( on xirsys) they will provide detail of API and also of static server detail .
I got the details of stun and turn but can please tell me how to use it in TurnServer.java interface. I have putted the details of api in this .
no need to use Turnserver.java if u want to use static server detail, in xirsys where you are getting api detail in same page you will get static server detail, so instead of making API request to get list ,use those static server and put them in list .
Ok Thanks Vivek. I got it I just need to add the static servers to the list iceServers. Am I Right.. ?
But I have one Confusion. Should i need to put both the url's of stun and Turn or only turn ..?
yes right just need to add static server to the list iceServers , actually it will work with Turn server but in list put url of both 1st stun server and after that turn servers.
I am getting error in MainActivity.java --> getIceServers() --> for (IceServer iceServer : iceServers)
: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
For this i think i need to change para in TurnServer.java interface , in this interface , request url is there and for that i signed up in xirsys to get new values of param from my account.
from Xirsys account i got detail : ident,secret,channel,secure.
what should i pass in : domain,application,room?? @vivek1794