twilio / rtc-diagnostics

Other
46 stars 14 forks source link

Can't connect to tcp server "turn:global.turn.twilio.com:3478?transport=tcp" in javascript #58

Closed Atominac closed 4 years ago

Atominac commented 4 years ago

In javascript, when trying to make a connection test fails and zero bitrate is received. This started happening after I updated to the new SDK.

const bitrateTest = testMediaConnectionBitrate({ iceServers: [{ credential: "creds", username: "username", urls: "turn:global.turn.twilio.com:3478?transport=tcp", }], });

charliesantos commented 4 years ago

Hi @Atominac ,

Thanks for submitting! Looking at your snippet, you would need a STUN server. Please see MediaConnectionBitrateTest.Options.iceServers and changelog for details.

Thanks, Charlie

Atominac commented 4 years ago

Hello, @charliesantos, Thanks for replying to the issue. This worked for me.

     {
    credential: "credential",
    username: "username",
    urls: ["turn:global.turn.twilio.com:3478?transport=tcp","stun:global.stun.twilio.com:3478?transport=tcp"],
}

Thanx for you help