WebRtc.NET icon indicating copy to clipboard operation
WebRtc.NET copied to clipboard

Datachannel is not working

Open Cozdemir opened this issue 5 years ago • 5 comments

I compiled solution and run locally. I can connect and get desktop streaming but data channel doesn't connect. I'ts immediately logs that "Datachannel is closed".

Cozdemir avatar Oct 24 '19 20:10 Cozdemir

You need to create data channel with same label name on the other side. It's work for me.

dsp85103 avatar Oct 27 '19 15:10 dsp85103

As far as i know you should only trigger from both sides when you want to set negotiation as true. i found issue about my case. In my sdp datachannel was UDP/DTLS/SCTP i replaced with DTLS/SCTP and it worked.

Cozdemir avatar Oct 27 '19 16:10 Cozdemir

As far as i know you should only trigger from both sides when you want to set negotiation as true. i found issue about my case. In my sdp datachannel was UDP/DTLS/SCTP i replaced with DTLS/SCTP and it worked.

I can confirm, the data channel does not need to be opened on both ends as long as it is not negociated. Replacing UDP/DTLS/SCTP to DTLS/SCTP in my SDP in on the signaling server solved it for me as well. Thank you.

ghost avatar May 20 '20 22:05 ghost

Hi everyone, I have recently started using WebRTC and i have the same problem with DataChannel. I would need to know how to modify my SDP datachannel from UDP/DTLS/SCTP with DTLS/SCTP. Thanks a lot...

michferrero avatar Oct 19 '20 09:10 michferrero

Also curious where to make this modification -- also, does this change work with unordered connections?

Sammmmm avatar Nov 22 '20 01:11 Sammmmm