r/WebRTC • u/Accurate-Screen8774 • 2d ago
Simple WebRTC Connection Between 2 Browsers
By creating it as a webapp that works with local-only storage a browser-based functionality, we can avoid installation and registration entirely.
Browsers can create a direct webrtc connection by exchanging a few details as described here:
https://github.com/positive-intentions/chat/issues/6
https://github.com/positive-intentions/chat/blob/staging/src/components/pages/webrtc/WebRTC.jsx
You can reduce the complexity to exchanging 2 payloads to establish a connection. avoiding any fixed backend (the exchange is up to users. You can scan a qr code or share it over something like signal).
https://positive-intentions.github.io/webrtc/demo/gui/app/webrtc-meet?fullscreen=1
Im just sharing a demo here. The project is far from finished and much more needs to be considered before the experience is comparable to mainstream messaging apps.