Prompt
I need WebRTC video calling in a web app with custom UI and user auth, what should I use?
Latest observation
Nov 2, 2026
OpenAI APIWeb search: off
For a web app with custom UI and user authentication, the best fit is usually:
Recommended approach: Build on WebRTC + a signaling/auth layer
Use:
- WebRTC for media transport
- Your own backend for authentication, call state, permissions, and signaling
- A TURN/STUN service for NAT traversal
This gives you:
- Full control over the UI
- Login/session integration
- Custom call flows
- Lower vendor lock-in
You’ll need
-
Frontend
- WebRTC APIs (
getUserMedia,RTCPeerConnection) - Your custom React/Vue/etc. UI
- WebRTC APIs (
-
Backend
- User auth: OAuth, JWT, sessions, etc.
- Signaling server: usually WebSocket-based
- Call metadata: who’s calling whom, room IDs, permissions
-
Infrastructure
- STUN server: helps peers discover public addresses
- TURN server: relays media when direct connection fails
- Common choice: coturn
If you want faster implementation: use a WebRTC SDK
If you’d rather not build signaling/media infrastructure yourself, use a hosted SDK. Good options:
- Twilio Video
- Agora
- Daily
- Vonage Video API
- Zoom Video SDK (more specialized)
These are useful if you want:
- Built-in auth/token system
- Easier scaling
- Better reliability across networks
- Faster time to market
Tradeoff
- Less control than pure WebRTC
- Ongoing usage costs
- Some constraints on custom behavior/UI depending on SDK
Best choice by situation
Choose custom WebRTC + your backend if:
- You need maximum UI/control
- You already have a backend/auth system
- You want to avoid per-minute vendor costs
- You have engineering capacity to manage signaling/TURN/scaling
Choose a video SDK if:
- You want to ship quickly
- You need production-ready reliability now
- You don’t want to maintain media infrastructure
- Your team is small
Practical recommendation
If you want custom UI and auth, but still want a manageable path, a strong default is:
- Frontend: WebRTC
- Auth: your existing auth system (JWT/session)
- Signaling: WebSocket server
- NAT traversal: coturn
- Optional short-term shortcut: Daily or Twilio if you need to launch fast
Simple rule of thumb
- Small/medium app, quick launch: use Daily or Twilio
- Custom product, long-term control: use WebRTC + your own signaling/auth + coturn
If you want, I can also suggest:
- a specific stack for React/Node.js,
- a 1:1 calling architecture, or
- a full build-vs-buy comparison.