flaky-beard-91685
08/14/2025, 6:02 AMtall-airline-16756
08/14/2025, 6:02 AMtall-airline-16756
08/14/2025, 6:03 AMpcm_s16le
) using binary frames. Plus, you'll get JSON notifications whenever there's a change in track state, like mute or unmute.
• Agents Framework: Here, WebSocket helps with server-to-server chats, like with OpenAI's Realtime API. But when it comes to sending media to users, LiveKit switches to WebRTC to keep things smooth and fast.
• Client SDKs: WebSocket is great for signaling and sending data, but it’s not the main way media gets delivered to end-users.
So, for most media streaming—especially video—LiveKit relies on WebRTC to make sure you get low latency and top-notch performance. Hope this clarifies things!
Sources: Universal Egress | Universal Egress | LiveKit Docs | LiveKit Docs | lib/src/support/websocket.dart