This example project demonstrates how to share a screen between two Java applications using WebRTC and JxBrowser.
The project consists of two parts: a simplistic WebRTC server and client applications.
The server is written in Node.js. The clients are written in Java and use JxBrowser.
- Java 8+
- Node.js 16.15.0
Open a terminal and run the following commands:
cd server
npm installStart the server:
cd server
node server.js [-p 3000]In different terminals, run Java clients:
cd clients
./gradlew runStreamer [-Pport=3000]cd clients
./gradlew runReceiver [-Pport=3000]