Skip to content Skip to sidebar Skip to footer

Webrtc Data Channel Always In Connecting State And Not Open

I am creating a small WebRTC app that for now used to exchange text message. I have got the WebRTC connection working but Datachannel always remains in 'connecting' state and never

Solution 1:

remove {RtpDataChannels: true} try again and if it works burn the tutorial or book which recommended those "rtp data channels". They are broken.

Solution 2:

I had the same problem. my code was working fine on mozilla using localhost signalling server without internet but on chrome i had this problem. Its Trickle ICE problem. one solution is you may set trickle ice off.

In chrome, may be you need the internet connection to gather the all possible ICE candidates. because in Chrome Datachannel will not get opened untill peer get all possible ICE candidates.

you can try the following link with internet or without internet. you will have brief idea. https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

for further information you can check this https://webrtcstandards.info/webrtc-trickle-ice/

Post a Comment for "Webrtc Data Channel Always In Connecting State And Not Open"