can a room fallback to audio only if the users ban...
# ask-ai
c
can a room fallback to audio only if the users bandwidth is too low?
t
Thanks for reaching out, Aaron. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to share that a LiveKit room can automatically switch to audio-only mode when a user's bandwidth is too low. This is handled by LiveKit's StreamAllocator, which smartly adjusts media delivery based on the current network conditions. When bandwidth gets tight: • Video streams are either lowered in resolution or paused to save data. • Audio takes priority and keeps flowing smoothly, so your conversations stay clear. This fallback happens automatically—no extra setup needed! But if you're interested, developers can also enable features like
adaptiveStream
to make bandwidth use even more efficient:
Copy code
const room = new Room({
  adaptiveStream: true,
});
If you'd like, I'm here to help with more details or walk you through the configuration. Just let me know! Sources: An introduction to WebRTC Simulcast | pkg/sfu/streamallocator/streamallocator.go | src/options.ts | Bringing Zoom's end-to-end optimizations to WebRTC | Bringing Zoom's end-to-end optimizations to WebRTC
c
Will it make the avatar fall back to audio only>
t
Thanks for reaching out! Could you please help me understand a bit more about what you mean by "avatar" here? Are you talking about a specific feature, like a video placeholder or maybe a custom avatar that shows up when the video is turned off? I’m here to help you with whatever you need!
c
The AI Avatar, can it fallback to audio stream instead of audio/video
t
LiveKit's AI Avatar is thoughtfully designed to publish synchronized audio and video tracks to a room. That said, it doesn’t currently have a built-in feature to automatically switch to an audio-only stream if video generation runs into issues or if bandwidth becomes limited. If this is something you need, you might consider adding some custom logic in your application to detect when video isn’t working properly and then switch to direct audio output from the agent. I’m here to help—just let me know if you'd like some guidance on how to set this up! Sources: Virtual avatar plugins | LiveKit Docs | livekit-plugins/livekit-plugins-bithuman/livekit/plugins/bithuman/avatar.py | Egress API | LiveKit Docs