Git Product home page Git Product logo

webrtc-test's Introduction

Webrtc-test

Testing RTC calls between two devices in a LAN. Uses websocket as signalling channel.

Prerequisite

Setup hotspot or LAN to which connected device will run websocket server. Note down the LAN IP of this device.

App Setup

Clone the repository

git clone https://github.com/a7k3/webrtc-test.git

Update the local IP of websocket server in frontend

# open the file to modify
vim webrtc-test/frontend/src/Context.ts
# modifying the file
# change http://192.168.90.92:8080 to your websocket server LAN IP
const socket: Socket = io('http://192.168.90.92:8080');

Run the websocket server and React App

# run websocket server
cd webrtc-test/
npm start

# run React App server
cd webrtc-test/frontend/
npm start

Configure the web browser to allow webrtc

1. Go to chrome://flags/
2. Search 'Insecure origins treated as secure' and enable it
3. Add your React App server LAN IP with port number in the text area below, eg. http://192.168.90.92:3000
4. Restart your browser

Starting the call

1. Go to React App, eg. by going to http://192.168.90.92:3000. Open this page on both devices between whom call is to be placed.
2. Enter the other devices ID on the input field. (ID is written in the bottom page).
3. Press the name with which you want to start call (4 coloured buttons).
4. The other device needs to accept the call (Notification is shown on the bottom of page).

webrtc-test's People

Contributors

a7k3 avatar

Watchers

 avatar

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.