WebRTC Ice 服务器问题

WebRTC Ice Servers Issue

未捕获的 DOMException:构造失败 'RTCPeerConnection':当 URL 方案为 "turn" 或 "turns" 时,需要用户名和凭据。

我收到这个错误她是我使用的冰服务器:

var servers = 
{'iceServers': [
        {url:'turn:numb.viagenie.ca'},
        {url:'stun:stun01.sipphone.com'},
        {url:'stun:stun.ekiga.net'},
        {url:'stun:stun.fwdnet.net'},
        {url:'stun:stun.ideasip.com'},
        {url:'stun:stun.iptel.org'},
        {url:'stun:stun.rixtelecom.se'},
        {url:'stun:stun.schlund.de'},
        {url:'stun:stun.l.google.com:19302'},
        {url:'stun:stun1.l.google.com:19302'},
        {url:'stun:stun2.l.google.com:19302'},
        {url:'stun:stun3.l.google.com:19302'},
        {url:'stun:stun4.l.google.com:19302'},
        {url:'stun:stunserver.org'},
        {url:'stun:stun.softjoys.com'},
        {url:'stun:stun.voiparound.com'},
        {url:'stun:stun.voipbuster.com'},
        {url:'stun:stun.voipstunt.com'},
        {url:'stun:stun.voxgratia.org'},
        {url:'stun:stun.xten.com'},
        {
            url: 'turn:numb.viagenie.ca',
            credential: 'muazkh',
            username: 'webrtc@live.com'
        },
        {
            url: 'turn:192.158.29.39:3478?transport=udp',
            credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
            username: '28224511:1379330808'
        },
        {
            url: 'turn:192.158.29.39:3478?transport=tcp',
            credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
            username: '28224511:1379330808'
        }
    ]
};

我的错误在哪里?我该怎么办?

错误消息的内容。您列表中的第一台服务器未指定用户名或凭据:

{url:'turn:numb.viagenie.ca'},

您还向下重复同一台服务器,这次使用凭据。

这些看起来也像 non-working 转向服务器 cut'n'pasted off the internet。免费转服是骗人的。

另外,服务器太多了。一两次眩晕 and/or 回合就可以了。太多会减慢 ICE。