futa
futa
CDCloudflare Developers
Created by futa on 4/16/2024 in #general-help
Calls TURN Service credentials
Cloudflare Calls documentation says it has a TURN Service, but the issued Calls credentials won't authenticate. Please tell me what credentials REPLACE_WITH_USERNAME and REPLACE_WITH_CREDENTIAL in the code below refer to. https://developers.cloudflare.com/calls/turn/
var myPeerConnection = new RTCPeerConnection({
iceServers: [
{
urls: "stun:stun.cloudflare.com:3478",
},
{
urls: "turn:turn.cloudflare.com:3478",
username: "REPLACE_WITH_USERNAME",
credential: "REPLACE_WITH_CREDENTIAL",
},
{
urls: "turns:turn.cloudflare.com:443?transport=tcp",
username: "REPLACE_WITH_USERNAME",
credential: "REPLACE_WITH_CREDENTIAL",
},
{
urls: "turn:turn.cloudflare.com:3478?transport=tcp",
username: "REPLACE_WITH_USERNAME",
credential: "REPLACE_WITH_CREDENTIAL",
},
],
});
var myPeerConnection = new RTCPeerConnection({
iceServers: [
{
urls: "stun:stun.cloudflare.com:3478",
},
{
urls: "turn:turn.cloudflare.com:3478",
username: "REPLACE_WITH_USERNAME",
credential: "REPLACE_WITH_CREDENTIAL",
},
{
urls: "turns:turn.cloudflare.com:443?transport=tcp",
username: "REPLACE_WITH_USERNAME",
credential: "REPLACE_WITH_CREDENTIAL",
},
{
urls: "turn:turn.cloudflare.com:3478?transport=tcp",
username: "REPLACE_WITH_USERNAME",
credential: "REPLACE_WITH_CREDENTIAL",
},
],
});
2 replies