Failed to construct 'RTCPeerConnection

464 views
Skip to first unread message

Ayarn Sawarn

unread,
Mar 5, 2023, 11:08:37 AM3/5/23
to discuss-webrtc
Hi, 
My ICE server is working fine, but in some cases it generates errors. I'm not sure what I'm supposed to do.

Uncaught DOMException: Failed to construct 'RTCPeerConnection': 'stun:x.xx.xx.xxx:3478?transport=udp' is not a valid stun or turn URL.

and my trun server url is :

config: {
        iceServers: [
          {
            urls: [`stun:${requests.iceServerUrl}:3478?transport=udp`],
            username: "user",
            credential: "pass",
          },
          {
            urls: [`turn:${requests.iceServerUrl}:3478`],
            username: "user",
            credential: "pass",
          },
        ],
      },
    });



WebrtcQuection.png
Reply all
Reply to author
Forward
0 new messages