【发布时间】:2017-06-26 12:26:08
【问题描述】:
当涉及到 firefox 并且需要 TURN 服务器时,我无法建立 WebRTC 连接。 使用此测试工具可重现原因:https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
尝试以下 stun 服务器配置:
URI:转:numb.viagenie.ca
用户名:l1787875@mvrht.com
密码:测试
在 chrome 中出现了接力候选人。在 Firefox 中有缺失。但为什么呢?
Chrome 56.0.2924.87(64 位)中的结果:
Time Component Type Foundation Protocol Address Port Priority
0.002 1 host 2969322736 udp 192.168.178.29 58537 126 | 30 | 255
0.002 1 host 1665573758 udp 2001::34ad:4890:3ce5:1be4:aa2b:d831 58538 126 | 10 | 255
0.002 2 host 2969322736 udp 192.168.178.29 58539 126 | 30 | 254
0.003 2 host 1665573758 udp 2001::34ad:4890:3ce5:1be4:aa2b:d831 58540 126 | 10 | 254
0.544 1 srflx 842163049 udp 85.212.39.206 58537 100 | 30 | 255
0.553 2 srflx 842163049 udp 85.212.39.206 58539 100 | 30 | 254
0.658 1 relay 3433799847 udp 66.228.45.110 57491 2 | 30 | 255
0.677 2 relay 3433799847 udp 66.228.45.110 57492 2 | 30 | 254
0.678 Done
Firefox 51.0.1(32 位)中的结果:
Time Component Type Foundation Protocol Address Port Priority
0.008 1 host 0 UDP 192.168.178.29 52762 126 | 32512 | 255
0.009 1 host 3 UDP 2001:0:9d38:6abd:82d:1d5a:aa2b:d831 52763 126 | 32256 | 255
0.009 2 host 0 UDP 192.168.178.29 52764 126 | 32512 | 254
0.009 2 host 3 UDP 2001:0:9d38:6abd:82d:1d5a:aa2b:d831 52765 126 | 32256 | 254
11.234 Not reachable?
【问题讨论】:
-
你能列出你看到的候选人吗?即使在 Chrome 中,我也看不到接力候选人。例如。在 ICE options 下,如果我将 IceTransports value: 设置为 relay,我会看到零个候选者。
-
你是对的。我已经编辑了问题。