最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Diagnosing WebRTC ICE Failures - Stack Overflow

programmeradmin0浏览0评论

For the last three years, whenever I use WebRTC, somewhere or other I will be dogged by the following error:

ICE Failed, see about:webrtc for more details

The error seems to have pop up in a variety of places: If the network is turned off for either peer, causing a failure of WebRTC (this is to be expected); If an answer or offer SDP is created too soon after receiving one; And, seemingly, at random times during signalling for no particular reason.

Whenever this occurs and I can't explain it, I'll head over to about:webrtc and try to find my way through the errors, but since I don't have an idea of what I'm looking for (and there is no "ICE failed because of this thing"), I can never quite figure out what's wrong. As a result, I'm usually doomed to hit-and-miss testing my code.

Obviously, this isn't the best way of doing it. So, my question is, how do I go about diagnosing ICE Failed errors in WebRTC? What should I look for in about:webrtc, what are mon errors in my code that could cause this, and are there any diagnostic tools I should know about?

For the last three years, whenever I use WebRTC, somewhere or other I will be dogged by the following error:

ICE Failed, see about:webrtc for more details

The error seems to have pop up in a variety of places: If the network is turned off for either peer, causing a failure of WebRTC (this is to be expected); If an answer or offer SDP is created too soon after receiving one; And, seemingly, at random times during signalling for no particular reason.

Whenever this occurs and I can't explain it, I'll head over to about:webrtc and try to find my way through the errors, but since I don't have an idea of what I'm looking for (and there is no "ICE failed because of this thing"), I can never quite figure out what's wrong. As a result, I'm usually doomed to hit-and-miss testing my code.

Obviously, this isn't the best way of doing it. So, my question is, how do I go about diagnosing ICE Failed errors in WebRTC? What should I look for in about:webrtc, what are mon errors in my code that could cause this, and are there any diagnostic tools I should know about?

Share Improve this question asked Feb 6, 2017 at 19:01 LaefLaef 1,1453 gold badges15 silver badges27 bronze badges 1
  • 1 WebRTC - while awesome - is very frustrating to work with. Its not entirely standardized and it can error for a seemingly endless list of reasons. The answer to your question is: Good luck. I salute you for trying and any success you may have. – The Dembinski Commented Feb 6, 2017 at 19:05
Add a ment  | 

2 Answers 2

Reset to default 5

In Chrome, the ICE failure state will be reached if all connections have timed out, not receiving a successful STUN response within 15 seconds.

There are a lot of ICE debug messages in the native log: https://webrtc/native-code/logging/

But these log statements would be difficult to interpret without being familiar with the code. If you believe ICE is reaching the failed state and it shouldn't, I'd remend filing a bug and including the native log.

I guess giving a full answer will be hard to do here.

The best approach is to look at chrome://webrtc-internals and follow the API trace. There's a detailed explanation about what to look for and what the mon errors are here: http://testrtc./webrtc-api-trace/

发布评论

评论列表(0)

  1. 暂无评论