iOS safari transform to mono audio playback when microphone captured via getUserMedia

Hi, i have this problem in web app context running in safari 14.0 on Apple Iphone X device.

It seems that when i capture the user's microphone via:

var opts = {
//audio: true,
audio: true,
video: true
};
navigator.mediaDevices.getUserMedia(opts)
This causes all audio playback within the page to be played as mono
e.g. i have a file that should only be heard through the left headphone and it is heard through both headphones.

Setting audio to false above means that the audio files play normally.

Seems like some sort of bug where capturing the microphone seems to affect the output audio context.

Any advice on what i can do to be able to get microphone input and stereo output simultaneously?

Replies

I have the same issue. The audio switches to mono in a webrtc session when I enable the microphone. Any solution?