+
80
-

Member RTCIceServer.urls is required and must be an instance of (DOMString or sequence)

我在苹果手机浏览器safari测试webrtc通话,出现错误

Member RTCIceServer.urls is required and must be an instance of (DOMString or sequence)

请问大神如何解决?

网友回复

+
0
-

配置增加一个urls

const configuration = {
      'iceServers': [{
                'urls': 'stun:web.debug.only.bfw.wiki:3478',
      },
      {
                    
           'urls': 'turn:web.debug.only.bfw.wiki:3478',
              'username': 'bfw',
              'credential': 'bfw'
       }]
};

我知道答案,我要回答