已经在公网服务器上搭建了 TURN 服务,并且在 trickle-ice 测试通过:
然后创建了 RTCPeerConnection,配置如下:
const pc = new window.RTCPeerConnection({
iceServers: [
{
urls: `stun:stun.freeswitch.org`,
},
{
urls: 'turn:xx.xx.xx.xx:3478',
username: 'username',
credential: 'password',
},
],
})
傀儡方如果是使用公网,就可以连通;但是一旦傀儡方使用内网,就无法连通
现在不知道哪一步出错了
待解决
悬赏分:20
- 离问题结束还有 85天8小时10分12秒
点赞 0反对 0举报 0
收藏 0
分享 0
