javawebrtcsctp

SCTP over UDP - Java implementation


I'm implementing WebRTC on the server-side, in Java within an existing container server. I need a library which will allow SCTP tunneled via UDP and possibly to a much lesser extent TCP. It is my understanding that only WebRTC data channel use SCTP over DTLS over UDP and that the audo / video data will continue to use RTP/SRTP; if I am incorrect on any of this, please correct me.

So far the only library I've found is here and it looks incomplete. The Jitsi also looked like an option, but they don't have full support for this or the whole of WebRTC as of yet.

IETF draft - UDP Encapsulation of SCTP Packets

Jitsi - Google summer of code 2014


Solution

  • Many years after posting the original question, I found a solution; I wasn't waiting, I just had not gotten back on this task until I was home during the pandemic; so without further rambling, this is what I used for an implementation at work: https://github.com/pipe/sctp4j This is an outstanding library and I was able to bend it to fit into my codebase.