Skip to content

denilgabani/sample-webrtc-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample WebRTC App - Getting Started

A single static page app so that we can easily understand how to use the WebRTC API to establish communication between two peers.

Prerequisites:

  • Node.js and npm (or yarn) installed on your system. You can check by running node -v and npm -v (or yarn -v) in your terminal.

Demo

WebRTC Made Simple

Instructions:

  1. Clone the repository:

    git clone [https://github.com/denilgabani/sample-webrtc-app.git](https://github.com/denilgabani/sample-webrtc-app.git)
    
  2. Navigate to the project directory:

  cd sample-webrtc-app
  1. Install dependencies:
   npm install
  1. Run the development server:
   npm start
  1. Open the app in two browser windows:
Open http://localhost:3000 in two separate browser windows to simulate two users in a video call.


Additional notes:

  1. This is a basic example and does not implement security features like encryption.
  2. You may need to allow camera and microphone access in your browser settings for the video call to function properly.

Further resources:

The blog post explaining the code: https://blog.denilgabani.com/a-simple-webrtc-app WebRTC documentation: https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API

About

A sample webrtc app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published