简体   繁体   English

Geckofx45 Webrtc信令从其他网络失败

[英]Geckofx45 Webrtc Signaling fails from different network

我正在尝试从GeckoFX的JavaScript中的rtcpeerconnection发出P2P信令,当在同一网络上完成信令时,该应用程序运行正常,但是如果是在两个不同的网络之间,则该应用程序不会发送任何眩晕信号

Every RTCPeerConnection would require a STUN or TURN server if on different networks. 如果在不同的网络上,每个RTCPeerConnection都将需要STUN或TURN服务器。

var servers = [
    "stun:stun.l.google.com:19302",
    "stun:stun1.l.google.com:19302",
    "stun:stun2.l.google.com:19302",
    "stun:stun3.l.google.com:19302",
    "stun:stun4.l.google.com:19302"
];

var configuration = {
   'iceServers': [{ // sequence<RTCIceServer>
      'urls': servers
   }],
   'iceTransportPolicy': 'all', // default
   'bundlePolicy': 'balanced',  // default
   'rtcpMuxPolicy': 'require'   // default
};

var pc = new RTCPeerConnection(configuration);

Every time a local session description is set via setLocalDescription() , 每次通过setLocalDescription()设置本地会话描述时,
onicecandidate event handler gets triggered with the ICE Candidate. onicecandidate事件处理程序通过ICE Candidate触发。

Adding trun in iceServers will fix it. 在iceServers中添加trun将对其进行修复。

or You can use XulFx it's based on Firefox 52 which has this bug fixed: 或者您可以使用基于Firefox 52的XulFx,该XbFx已修复此错误:

https://bitbucket.org/vmas/xulfx/src/default/ https://bitbucket.org/vmas/xulfx/src/default/

and you can download releases from here : 您可以从此处下载发行版本:

https://bitbucket.org/vmas/xulfx/downloads/ https://bitbucket.org/vmas/xulfx/downloads/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM