I am writing my thesis about WebRTC DataChannels. I was wondering if I could use ice4j on a Java server to tunnel ice'd UDP over DTLS over SCTP with a WebRTC DataChannel client.
In the current setup I have running I manually respond to turn requests, https://github.com/IIlllII/bitbreeds-webrtc/blob/master/webrtc-signaling/src/main/java/com/bitbreeds/webrtc/signaling/BindingService.java (I am not the original author of the repository). Would it be possible to replace this logic with ice4j.
If my understanding is correct this would mean that all the STUN & TURN logic are done under the hood by ice4j, eventually returning an UDP socket with which you can use to communicate with the ‘other’ side. Creating a SCTP network link on top of that UDP socket wouldn’t be much of an issue than. I would be using SDP, since this is also used by WebRTC, to notify the other end of the connection with the different ICE candidates I have.
Could you give me any directions on whether this setup is possible? I’m having trouble extrapolating a working demo on the available examples found online, which is due to my inexperience.
Thanks in advance.