This is a simple WebRTC video connection application that allows two users to establish a peer-to-peer video call using WebRTC technology Without Signaling Server.
- Clone the repository:
git clone https://github.com/Abhishek21k/webrtc.git
- Navigate to the project directory:
cd webrtc
- Install the dependencies:
npm install
- Start Server:
npm start
To establish a WebRTC connection between two peers:
-
On the first peer's device:
- Click "Create Offer"
- Copy the generated SDP offer from the "SDP Offer" textarea
-
On the second peer's device:
- Paste the received SDP offer into the "SDP Offer" textarea
- Click "Create Answer"
- Copy the generated SDP answer from the "SDP Answer" textarea
-
Back on the first peer's device:
- Paste the received SDP answer into the "SDP Answer" textarea
- Click "Add Answer"
-
If everything is set up correctly, you should now see the video streams for both peers.