oniceconnectionstatechange: disconnected

832 views
Skip to first unread message

Alexander Abagian

unread,
Aug 22, 2022, 12:50:03 PM8/22/22
to discuss-webrtc
Hi,

I've got some silly question : what does ice connection state "disconnected" actually mean ? Ice connection is just a kinda hanshake on UDP (in my case) connection, and it couldn't be disconnected by itself, like the UDP itself. What event forces this state ? Maybe WebRTC engine uses some keep alive STUN packets, and their absence caused this effect ? Does it depend on trickliness of the ICE ?

Nils Ohlmeier

unread,
Aug 22, 2022, 1:45:28 PM8/22/22
to discuss-webrtc
All browsers use ICE consent to ensure that the other side is still willing to receive traffic. If these consent packets get lost because of packet loss the ICE connection state switches to 'disconnected'. I can switch back to 'connect' or go to 'failed' depending on if consent packets continue to drop or get answered again.

Best
  Nils

Alexander Abagian

unread,
Aug 24, 2022, 4:57:46 PM8/24/22
to discuss-webrtc
Nils,

Thank you. I even found your article concerned with the topic :   https://blog.mozilla.org/webrtc/ice-disconnected-not/

понедельник, 22 августа 2022 г. в 20:45:28 UTC+3, nils.o...@gmail.com:
Reply all
Reply to author
Forward
0 new messages