Proof of concept for peer to peer calls using WebRTC technology.
There are three servers:
- JavaScript Node.JS Express
- Python AIOHTTP
- Python FastAPI
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.
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
Just run docker compose -f docker-compose-nodejs.yaml up --build -d
to start video app, it would be available at http://localhost:3000
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.