fix: daily video optimisation (#789)

Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
This commit is contained in:
Igor Monadical
2025-12-15 15:00:53 -05:00
committed by GitHub
parent 443982617d
commit 16284e1ac3

View File

@@ -105,7 +105,19 @@ export default function DailyRoom({ meeting }: DailyRoomProps) {
}
});
await frame.join({ url: roomUrl });
await frame.join({
url: roomUrl,
sendSettings: {
video: {
// Optimize bandwidth for camera video
// allowAdaptiveLayers automatically adjusts quality based on network conditions
allowAdaptiveLayers: true,
// Use bandwidth-optimized preset as fallback for browsers without adaptive support
maxQuality: "medium",
},
// Note: screenVideo intentionally not configured to preserve full quality for screen shares
},
});
} catch (error) {
console.error("Error creating Daily frame:", error);
}