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",
},
],
});
Cloudflare Docs
TURN Service · Cloudflare Calls docs
Separately from the SFU, Calls also offers a managed TURN service. TURN acts as relay points for traffic between WebRTC clients like the browser and …
1 Reply
theLaCzar
theLaCzar7mo ago
HI just curious, will this be similar to Twilio?
Want results from more Discord servers?
Add your server