-
Notifications
You must be signed in to change notification settings - Fork 377
Specify transport protocol when issuing connection #1323
Comments
Please download js sdk doc by clicking "Client SDK/Javascript*" in https://www.intel.com/content/www/us/en/developer/tools/webrtc-sdk/overview.html. In the unzipped document, Owt.Conference.ConferenceClient.html and Owt.Conference.ConferenceClientConfiguration.html describe related APIs You can set the stun server address in ConferenceClientConfiguration when initializing ConferenceClient object: new ConferenceClient(config, signalingImpl), where config can be set as: |
Thanks for your reply. With the code change you suggested I encountered an error. I did add the following:
With the suggested changes, I am still seeing the following error in the browser console: ICE connection state changed to checking channel.js:486:11 |
Please set stun server in iceServers: { stun server is needed for signaling, in your configuration, only turn server is set. |
Thank you for the quick reply, I added a public stun server:
Unfortunately, I still seening the same error. |
According to the console log, it seems turn server is broken. And in your ICE server testing snapshot, relay address is not displayed with your setting turn server, make sure your turn server could get the relay address in the ICE server testing. |
BTW, check the stun server first, stun server is enough in most network. When you click "gather candidate" button in ice servers testing page, there should be no error message displayed below "gather candidate" button and according to the description in this page, validate stun/turn server by: If you test a STUN server, it works if you can gather a candidate with type "srflx". If you test a TURN server, it works if you can gather a candidate with type "relay". |
Thanks for your reply. Assuming that my turn server is indeed not configured properly, I tries using a public stun I tried with:
|
In fact, you can keep turn server url in the configuration, stun server will be firstly used if it works well. I checked "stun:stun3.l.google.com:19302" in ice, it seems this stun server does not work well with following error: Note: errors from onicecandidateerror above are not neccessarily fatal. For example an IPv6 DNS lookup may fail but relay candidates can still be gathered via IPv4. We used to setup stun server with coturn in public network and it worked well. So check your coturn environment to make sure stun service work well. |
I finally got some more information from my turn server:
on the turn server :
Why is succeeding and then getting 401? Also on the ICE page I don't have this problem. So is it just my client? |
I am running a coturn server using the following configuration:
Checking ICE servers it seems to work only if I specify the protocol:
It seems my application isn't working because there is no way to specify the connection protocol?
Here are the logs from the client:
The text was updated successfully, but these errors were encountered: