ICE failed, add a STUN server and see about:webrtc for more details

nathvela

Member
Hi,

I get this error evrry now and then .. The error is gievn out by the browser. What can I do to prevent this?
And how do I catch this error if I cant prevent it so my script can act accordingly?

Thank you
 

Attachments

  • Screen Shot 2019-04-05 at 1.37.23 PM.png
    Screen Shot 2019-04-05 at 1.37.23 PM.png
    30.7 KB · Views: 485
Good day.
You likely use Firefox browser to publish or play WebRTC stream via TCP. Try to switch off any additional networks and VPNs on your PC/Mac. If this did not help, use Chrome browser for streaming. Firefox can not work stable with TCP ICE candidates.
 
Hello,

Is there a possible way I can catch this error? So that I can just make a script to make reconnect the user once this happens. Any suggestions is much appreciated.
 
There is one possible way to escape this error: use UDP transport for WebRTC from Firefox as described here, for example (stream publishing)
Code:
session.createStream({
    name: streamName,
    display: localVideo,
    cacheLocalResources: true,
    receiveVideo: false,
    receiveAudio: false,
    transport: "UDP"
}).on(STREAM_STATUS.PUBLISHING, function (stream) {
...
}),publish();
 
Top