Playing around with WebRTC
This diagram from the WebRTC docs closely resembles what this application is doing. This application does not use a TURN server, so there's a chance two clients will be unable to connect. I'm currently using Google's public STUN servers which are for development. So far seems to work fine when the two clients are on the same network.
Stack:
- NodeJs
- Express
- Express-Ws (Websockets)
- Vanilla HTML/CSS/JS
- Bootstrap
- Websockets
yarn install
yarn run start
- Load the webpage
- Toggle video on
- One peer should initiate a session by sending an offer
- The other peer should answer the offer
- Finally, the original peer can add the candidate to the session
- Video + audio = janky version of Google Meet
- Also, you can join from two different tabs
# Push to microk8s registry
docker buildx build --platform linux/amd64,linux/arm64 --push -t home-server:32000/local/web-rtc-demo .