radioman / WebRtc.NET

WebRTC for C# & C++/CLI
Other
419 stars 126 forks source link

Datachannel is not working #98

Open Cozdemir opened 5 years ago

Cozdemir commented 5 years ago

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

dsp85103 commented 5 years ago

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

Cozdemir commented 5 years ago

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.

ghost commented 4 years ago

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.

michferrero commented 4 years ago

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

Sammmmm commented 3 years ago

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