Closed Bug 1475163 Opened 6 years ago Closed 6 years ago

Cannot call getUserMedia multiple times with different Microphones

Categories

(Core :: WebRTC: Audio/Video, enhancement)

61 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1404977

People

(Reporter: adam, Unassigned)

Details

If you call getUserMedia multiple times in the same browser tab with different microphones as the audioSource then only the first call works. Subsequent calls result in "NotReadableError" "Failed to allocate audiosource". Indicating that the microphone is already in use even though it isn't. 

This is preventing us from allowing users to switch from one microphone to another. This in combination with https://bugzilla.mozilla.org/show_bug.cgi?id=940011 means that we can't even stop the initial audio track and then call getUserMedia. So to switch microphones the user has to refresh the browser which is obviously not ideal.

I put together a small sample application that tries to call getUserMedia with all of the available audioinput devices that come back from enumerateDevices. This results in errors in Firefox but works fine in Chrome and Safari.

https://output.jsbin.com/feruzuv
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.