// 540p mid VideoParameters( dim...
# ask-ai
t
// 540p mid VideoParameters( dimensions: .h540_169, encoding: VideoEncoding( maxBitrate: 1_800_000, maxFps: 15 ) ), // 540p low VideoParameters( dimensions: .h540_169, encoding: VideoEncoding( maxBitrate: 1_000_000, maxFps: 10 ) ) will livekit switch to the above layers with Simulcast if it the same resolution?
t
Thanks for reaching out, khaled. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
LiveKit uses simulcast to publish multiple versions of a video track with different encoding parameters, dynamically selecting the most suitable stream based on bandwidth and device conditions. Simulcast layer selection is primarily driven by spatial resolution and quality tiers, with bitrate and framerate as secondary parameters within each quality tier. That said, the documentation doesn’t clearly state whether LiveKit switches between layers that have the same resolution but different encoding parameters (like maxBitrate and maxFps). If you have a particular use case or scenario in mind, please feel free to share more details—I’d be happy to help you figure it out! Sources: Codecs and more | LiveKit docs | src/room/track/LocalVideoTrack.ts | livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Local... | An introduction to WebRTC Simulcast