-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d09cee2
commit a4cf2b9
Showing
29 changed files
with
19,274 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# P2P Video Call Using WebRTC and Socket.IO | ||
|
||
|
||
## Table of Contents | ||
- [Introduction](#introduction) | ||
- [Features](#features) | ||
- [Getting Started](#getting-started) | ||
- [Prerequisites](#prerequisites) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Step 1: Input User Email and Room ID](#step-1-input-user-email-and-room-id) | ||
- [Step 2: Connect Users via Socket.IO](#step-2-connect-users-via-socketio) | ||
- [Step 3: Initiate a Call](#step-3-initiate-a-call) | ||
- [Step 4: Send Video Stream](#step-4-send-video-stream) | ||
|
||
## Introduction | ||
This project is a real-time P2P video call application that utilizes WebRTC and Socket.IO for connecting users over video calls. Users can initiate calls, send and receive video streams, and communicate seamlessly in a secure environment. | ||
|
||
## Features | ||
- User-friendly interface | ||
- Real-time video calls | ||
- Secure user authentication and room creation | ||
- Easily extendable and customizable | ||
|
||
## Getting Started | ||
### Prerequisites | ||
Before running this application, ensure you have the following dependencies installed: | ||
|
||
- Node.js: [Download Node.js](https://nodejs.org/) | ||
|
||
### Installation | ||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/vaibhavpnimkar/P2P-VideoCall | ||
cd your-repo | ||
``` | ||
|
||
2. Install the required dependencies: | ||
```bash | ||
npm install | ||
``` | ||
|
||
3. Start the application: | ||
```bash | ||
npm start | ||
``` | ||
|
||
## Usage | ||
### Step 1: Input User Email and Room ID | ||
![Step 1 Screenshot](https://github.com/vaibhavpnimkar/P2P-VideoCall/blob/main/screenshots/1.png) | ||
|
||
- Open the application and enter your email. | ||
- Create or join a room by entering a room ID. | ||
|
||
### Step 2: Connect Users via Socket.IO | ||
![Step 2 Screenshot](https://github.com/vaibhavpnimkar/P2P-VideoCall/blob/main/screenshots/2.png) | ||
|
||
- Click the "Connect" button to establish a connection with the other user in the same room using Socket.IO. | ||
|
||
### Step 3: Initiate a Call | ||
![Step 3 Screenshot](https://github.com/vaibhavpnimkar/P2P-VideoCall/blob/main/screenshots/3.png) | ||
|
||
- Once connected, click the "Call" button to initiate a video call. | ||
|
||
### Step 4: Send Video Stream | ||
![Step 4 Screenshot](https://github.com/vaibhavpnimkar/P2P-VideoCall/blob/main/screenshots/4.png) | ||
|
||
- After the call is initiated, click the "Send Stream" button to start sending your video stream to the other user. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Getting Started with Create React App | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
|
||
The page will reload when you make changes.\ | ||
You may also see any lint errors in the console. | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can't go back!** | ||
|
||
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. | ||
|
||
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) | ||
|
||
### Deployment | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) | ||
|
||
### `npm run build` fails to minify | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
Oops, something went wrong.