- General parameters for webrtc app
- Our signal server on Java
- Native client and MCU server
General parameters for webrtc app
You also can test signal server - all instructions are in README file.
As I mention in Our signal server chapter the RTCPeerConnection API is oriented on p2p connections but It allows to create client-server solutions.
I've implementing RTCPeerConnection api for java. I used the native webrtc source and JNI because implementing webrtc requires a lot of protocols (SRTP, SCTP, RTP etc).
I would have done this JNI stuff but I hadn't been stuck with one problem. I couldn't glue JNI and multi-threading native client. I've received JVM errors about damaged frame stack.
So I've implemented demo native client that works via console as signaling. The native client's code is attached to the this doc.
To build and test it you must do the following tasks:
- Go to the https://webrtc.org/native-code/development/ and install depot tools
- Then checkout chromium webrtc sources. Instructions are here - https://webrtc.org/native-code/development/. Check-outing will borrow a lot of time ~ 1 hour for me.
- Then copy my native client code to src/webrtc/examples/peerconnection/linux (or windows if you use it)
- Then you must install ninja build system and run
$ ninja -C out/Debug
- in your src directory
- Finally the peer_connection_client must arrive in your out/Debug directory
- Then just execute it and test. It provides testing instructions.
It can connect to the browser RTCPeerConnection and dump stream into hard disk.