Does LiveKit support WebRTC over QUIC?
# ask-ai
b
Does LiveKit support WebRTC over QUIC?
t
Thanks for reaching out, Luis. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether LiveKit supports WebRTC over QUIC (for example WebTransport or QUIC-based WebRTC). Could you clarify which QUIC scenario you mean? • Do you mean using WebTransport (HTTP/3 + QUIC) for media/data instead of standard WebRTC (DTLS/SRTP over UDP)? • Or do you mean experimental WebRTC-over-QUIC (ICE/QUIC) transport (replacing DTLS/SRTP)? Which one are you planning to use, and on which client platforms/browsers? That will help me give a precise answer and suggest alternatives if needed.
b
I mean using WebTransport for media instead of SRTP over UDP.
t
Thanks — that clarifies it. LiveKit does not support using WebTransport (QUIC) for media. LiveKit’s media plane uses standard WebRTC (SRTP over UDP, with TURN/TCP or TURN/TLS fallbacks) and the server-side SFU is built on the Pion WebRTC library. If you’d like, I can: • Explain how LiveKit handles connectivity and TURN fallbacks, or • Suggest migration or integration approaches if you need QUIC/WebTransport for other parts of your stack. Which would help you most? Sources: Aggregated LiveKit Platform | livekit/livekit_composite | DeepWiki | Platform Architecture & Protocol | livekit/livekit_composite | DeepWiki | Configuring firewalls | LiveKit docs | Deploying LiveKit | LiveKit docs
b
Can you explain now support for experimental WebRTC over Quic (ice/quic) transport?
t
You’re asking about experimental WebRTC-over-QUIC (ICE/QUIC) transport — thanks for clarifying. LiveKit does not support ICE/QUIC. LiveKit’s media plane is built on standard WebRTC (SRTP over UDP) using the Pion WebRTC stack, with TURN fallbacks over TCP/TLS when UDP is blocked. There’s no documented or supported option to use ICE/QUIC in place of the standard WebRTC transports. I can: • Explain LiveKit’s current connectivity and TURN fallback behavior, or • Outline possible approaches if you need QUIC/WebTransport features in your architecture (e.g., using WebTransport for non-media data alongside LiveKit media). Which would you like?
b
• Suggest migration or integration approaches if you need QUIC/WebTransport for media/data.
t
Thanks — you're asking for migration/integration approaches when you need QUIC/WebTransport while using LiveKit (which does not support WebTransport for media). Below are concise options you can use depending on whether you need QUIC for data, ingress, or full media paths. 1) Use WebTransport for signaling (keep LiveKit media) • Run a WebTransport endpoint that accepts client connections. • Translate WebTransport streams/messages to LiveKit’s WebSocket/Protocol Buffer signaling for the room/session. • Keeps LiveKit’s SRTP/WebRTC media path unchanged while benefiting from QUIC features for signaling. 2) Ingest WebTransport media via an edge proxy (convert to WebRTC for LiveKit) • Deploy an edge proxy that accepts client media over WebTransport. • Decode or transmux the media and publish it into LiveKit as a standard WebRTC ingress (or via supported ingest like WHIP/RTMP if applicable). • LiveKit then handles distribution using its SFU to other participants. 3) Hybrid architecture: LiveKit for media, WebTransport for high-throughput data • Continue using LiveKit for real-time audio/video. • Run separate WebTransport services for game state, large file transfer, or telemetry that require QUIC properties. • Coordinate using LiveKit participant IDs and room events so both systems remain synchronized. 4) Relay/cascade approach for multi-SFU or edge aggregation • If you need QUIC between datacenters/edges, keep internal SFU links on LiveKit’s SRTP-based relay and use WebTransport only at the client ↔️ edge boundary with a local proxy that converts to WebRTC for the SFU mesh. Practical notes to plan: • You’ll need an edge/proxy component to translate protocols (signaling or media) between WebTransport and LiveKit’s WebRTC stack. • Expect added complexity: media transcoding/transmuxing, session mapping, auth propagation, and extra latency overhead at the proxy. • Use this when QUIC-specific benefits (connection migration, reduced head-of-line blocking, firewall behavior) are essential at the client edge. If you tell me which scenario you care about most (signaling only, client-to-edge media ingest, full media conversion, or hybrid data+media), I can outline a concrete architecture and the key implementation steps. Sources: How We Built a Globally Distributed WebRTC Mesh Network | pkg/transport/createmux.go | Platform Architecture & Protocol | livekit/livekit_composite | DeepWiki | Stream import | LiveKit docs