Skip to content

matacoder/p2p-video-calling-app

 
 

Repository files navigation

WebRTC Peer to Peer Video Calls

Proof of concept for peer to peer calls using WebRTC technology.

There are three servers:

  • JavaScript Node.JS Express
  • Python AIOHTTP
  • Python FastAPI

Environment

FastAPI version requires custom path and it is set in index.js line 11. To use aiohttp of node.js servers just remove this /ws path.

Python installation

Just run docker compose -f docker-compose-aiohttp.yaml up --build -d to start video app, it would be available at http://localhost:3000

Or docker compose -f docker-compose-fastapi.yaml up --build -d if you want to use FastAPI

JavaScript installation

Just run docker compose -f docker-compose-nodejs.yaml up --build -d to start video app, it would be available at http://localhost:3000

Local start

To run the app without docker:

yarn && yarn dev

or if you use npm:

npm i && npm run dev

Once the server is running, open http://localhost:3000 in 2 separate tabs in your favourite browser.

Select ID of the user and click call.

Links

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 38.2%
  • Python 33.5%
  • HTML 14.5%
  • CSS 8.5%
  • Dockerfile 5.3%