jeromec8194
03/18/2025, 11:23 AMShubham Bajaj
03/19/2025, 1:49 PMts
// Before starting microphone
if (navigator.audioSession) {
navigator.audioSession.type = 'auto';
}
// After getting microphone access
if (navigator.audioSession) {
navigator.audioSession.type = 'play-and-record';
}
// When done with the microphone
if (navigator.audioSession) {
navigator.audioSession.type = 'playback';
navigator.audioSession.type = 'auto';
}
2. Try disabling audio processing when getting the media stream:
javascript
navigator.mediaDevices.getUserMedia({
audio: {
autoGainControl: false,
echoCancellation: false,
noiseSuppression: false
}
})
3. Collect more detailed logs during your next test call by enabling browser console logs to capture WebRTC negotiation and device selection events
The core issue appears to be related to how iOS handles audio routing with WebRTC, which is a known problem that Apple has been slow to address.