A java wrapper for WebRTC by JNI based on WebRTC M70, you could use this java lib to communicate with any other WebRTC client(eg: chrome browser, android, ios...), stream from other client to java side isn't supported yet, if anyone would like to finish this part, your PR will been very expected.
You could use this lib to transport video stream(include audio) to other WebRTC clients.
This project may not be designed very well, but you can use it as a reference to know how to use webrtc native lib. You can take it as a start point to build your project.
# Step 1: Build ./native by cmake
# These are some build scripts in ./native/scripts
# and if you are in MacOS, the native lib already built and located in ./rtc4j/src/main/resources/jni
# Step 2: maven install rtc4j
cd ./rtc4j
mvn install
# Step 3: maven run spring demo
cd ./demo/spring
mvn spring-boot:run
# Step 4: maven run front vue demo
cd ./demo/vue
npm install
npm run serve
# open http://localhost:8080/
Dependencies
, you should build your own webrtc native lib, it's free to upgrade webrtc native lib if necessary/cpp(JNI)
side and rtc4j(Java)
side(If you upgrade webrtc native lib, it is very likely you need to upgrade existed JNI code too)