Git Product home page Git Product logo

webrtc-react's Introduction

WebRTC React

WebRTC React is a simple video chat application built using WebRTC technology. It allows users to have real-time video communication and exchange chat messages with each other.

Features

  • Real-time video communication using WebRTC.
  • Exchange chat messages during the video call.
  • Display local and remote video streams.
  • Name input for identifying users.
  • Responsive design for various devices.

Technologies Used

  • Front-end: React
  • Back-end: Express.js, WebSocket
  • WebRTC: Real-Time Communication API for video streaming and peer-to-peer communication.

Prerequisites

To run the WebRTC React application locally, you need to have the following software installed on your machine:

  • Node.js (version 12 or higher)
  • npm (Node Package Manager)

Getting Started

Follow these steps to set up and run the WebRTC React application:

  1. Clone the repository:

    git clone https://github.com/KohanTorabi/webrtc-react.git

  2. Navigate to the project directory:

    cd webrtc-app

  3. Install dependencies:

    npm install

  4. Start the React development server:

    npm start

  5. Open another terminal window and navigate to the server directory:

    cd webrtc-server

  6. Install server dependencies:

    npm install

  7. Start the server:

    npm start

  8. Access the WebRTC React application in your browser at http://localhost:3000.

Usage

  1. Open the WebRTC React application in two identical tabs or windows.

  2. In each tab, enter your name in the name input field.

  3. Click on the "Call" button in both tabs to initiate the video call.

  4. Grant access to your camera and microphone when prompted.

  5. You should now see your local video stream in one tab and the remote video stream in the other tab.

  6. Exchange chat messages by typing in the input field and pressing Enter or clicking the send button.

  7. To end the video call, simply close one of the tabs or click the "Call" button again.

Contribution

Contributions to the WebRTC React project are always welcome! If you have any ideas, improvements, or bug fixes, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix:

    git checkout -b feature/your-feature-name

  3. Make the necessary changes and commit them:

    git commit -m "Add your commit message"

  4. Push the changes to your forked repository:

    git push origin feature/your-feature-name

  5. Open a pull request on the original repository and provide a detailed description of your changes.

  6. Your contribution will be reviewed, and once approved, it will be merged into the main codebase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.