为什么我的 WebRTC 只能在本地网络上工作

问题描述 投票:0回答:1

所以我第一次设置 WebRTC 并让它在我的本地网络上正常工作,但是当我在另一个网络上尝试时它就停止工作了。我已经设置了一个眩晕服务器和一个转弯服务器,但它仍然无法工作。

这是我的配置,不确定是否还有其他因素或其他我应该显示的代码,但这就是我设置的:

const iceConfiguration = {
  iceServers: [
    {
      urls: "stun:stun.l.google.com:19302"
    },
    {
      urls: 'turn:relay1.expressturn.com:3478',
      username: '', // There is a username and password here i just removed it
      credential: ''
    }
  ]
}

const peerConnection = new RTCPeerConnection(iceConfiguration);
javascript webrtc
1个回答
0
投票

我也遇到这个问题了

© www.soinside.com 2019 - 2024. All rights reserved.