Hi Dmitry,
I used SimpleWebRTC (https://simplewebrtc.com) to implement the video
conference and there are also some events that are handling file
transfers via data channel - have a look at
https://simplewebrtc.com/filetransfer
You have to check the version of SimpleWebRTC - there have been a lot of
updates since I implemented the Wicket integration, so we may need to
update the lib first.
If you want to send the file that has been transfered from one browser
to the others via the fileTransfer event back to the server you can make
a wicket ajax request. I implemented such a request in the summernote
editor:
https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/editor/js/summernote_init.js#L31
You need at least a signal server which is implemeted in nodejs and a
STUN server so that data transfers can be initiated from behind your NAT
- a documentation can be found here:
https://github.com/wicketstuff/core/wiki/Html5#webrtc-api-wicketstuff-700-m6
The example project of wicketstuff-html5 show you a demo:
https://github.com/wicketstuff/core/tree/master/wicket-html5-parent/wicket-html5-examples
kind regards
Tobias
Am 24.03.16 um 17:01 schrieb Dmitriy -:
Hello Tobias.
Thank for the library!
I have a question about it.
I write server and want use webRTC datachannel.
What exactly do I have to implement for using it?
I mean some protocols like a STUN/TURN/ICE or something else.
--
Regards,
Dmitry Bezheckov.