WebRTC WebView Audio Routing Fix

Заказчик: AI | Опубликовано: 09.01.2026
Бюджет: 30 $

My WebRTC calling app (Node.js backend, vanilla WebRTC frontend) works fine in the browser, but inside the Android WebView wrapper every call plays through the loudspeaker instead of the earpiece. This happens across multiple Android devices, so it’s clearly a WebView audio-routing problem rather than a handset quirk. I need a clean, reproducible fix that makes incoming call audio default to the phone’s earpiece and still lets me switch to speakerphone when required. A small Kotlin/Java patch that tweaks AudioManager, WebChromeClient, or any required WebRTC constraints is ideal; if the solution also involves a bit of JavaScript, please include that. Deliverable: • Updated Android code (and any associated JS) that routes call audio to the earpiece by default. • A brief explanation of the changes so I can merge them into future builds. I’ll supply the current wrapper source, test APK, and access to the signaling server as soon as we begin.