diff --git a/android/app/src/main/java/com/wzp/ui/call/CallViewModel.kt b/android/app/src/main/java/com/wzp/ui/call/CallViewModel.kt index 5e7eae2..9edae46 100644 --- a/android/app/src/main/java/com/wzp/ui/call/CallViewModel.kt +++ b/android/app/src/main/java/com/wzp/ui/call/CallViewModel.kt @@ -138,7 +138,7 @@ class CallViewModel : ViewModel(), WzpCallback { ServerEntry("172.16.81.175:4433", "LAN (172.16.81.175)"), ServerEntry("193.180.213.68:4433", "Pangolin (IP)"), ) - const val DEFAULT_ROOM = "android" + const val DEFAULT_ROOM = "general" } fun setContext(context: Context) { diff --git a/crates/wzp-relay/src/handshake.rs b/crates/wzp-relay/src/handshake.rs index 1c8cb29..278743b 100644 --- a/crates/wzp-relay/src/handshake.rs +++ b/crates/wzp-relay/src/handshake.rs @@ -89,20 +89,9 @@ pub async fn accept_handshake( /// Select the best quality profile from those the caller supports. fn choose_profile(supported: &[QualityProfile]) -> QualityProfile { - // Prefer higher-quality profiles. Use GOOD as default if supported list is empty. - if supported.is_empty() { - return QualityProfile::GOOD; - } - // Pick the profile with the highest bitrate. - supported - .iter() - .max_by(|a, b| { - a.total_bitrate_kbps() - .partial_cmp(&b.total_bitrate_kbps()) - .unwrap_or(std::cmp::Ordering::Equal) - }) - .copied() - .unwrap_or(QualityProfile::GOOD) + // Cap at GOOD (24k) for now — studio tiers (32k/48k/64k) not yet tested + // for federation reliability (large packets may exceed path MTU). + QualityProfile::GOOD } #[cfg(test)]