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

Max

Administrator
Staff member
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.
 

nathvela

Member
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.
 

Max

Administrator
Staff member
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