abundant-magician-17307
02/17/2025, 8:16 AMgray-monkey-83525
02/17/2025, 8:16 AMabundant-magician-17307
02/17/2025, 8:18 AMgray-monkey-83525
02/17/2025, 8:18 AMabundant-magician-17307
02/17/2025, 8:21 AMgray-monkey-83525
02/17/2025, 8:21 AMVideoEncoding
settings to optimize for quality and performance. Here's an example of how you might configure these parameters:
const room = new Room({
videoCaptureDefaults: {
resolution: { width: 1920, height: 1080, frameRate: 30 },
},
publishDefaults: {
videoEncoding: {
maxBitrate: 5000 * 1000, // 5000 kbps for high quality
maxFramerate: 30,
},
videoCodec: 'h264',
},
});
// Example of publishing a screen share track
async function publishScreenShare() {
const screenShareTrack = await createLocalScreenShareTrack();
await room.localParticipant.publishTrack(screenShareTrack, {
videoEncoding: {
maxBitrate: 5000 * 1000, // Adjust bitrate as needed
maxFramerate: 30,
},
});
}
This example sets a high bitrate and frame rate to ensure good quality for a desktop presentation. Would you like more details on any specific part of this setup?
Sources:
- https://docs.livekit.io/client-sdk-flutter/livekit_client/VideoParametersPresets/screenShareH2160FPS30-constant.html
- https://docs.livekit.io/client-sdk-flutter/livekit_client/VideoParametersPresets/screenShareH720FPS15-constant.html 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.abundant-magician-17307
02/17/2025, 8:30 AMgray-monkey-83525
02/17/2025, 8:30 AM