Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有办法检查 peerConnection 何时无法连接到 STUN 服务器?
据我了解,没有直接的方法可以做到这一点。
但是,如果你传入一个 STUN 服务器,然后在收集过程中没有得到任何 STUN 候选者(并且你的本地候选者是不可路由的),这意味着无法联系到 STUN 服务器。