Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.42k forks source link

Audio input selection broken in Safari #5005

Open keianhzo opened 2 years ago

keianhzo commented 2 years ago

Description Audio input selection is broken in Safari. This is currently patched in production so you need to test locally setting audioInputSelectEnabled to true in MediaDevicesManager or use an older commit.

To Reproduce Steps to reproduce the behavior:

  1. Open a Hubs room
  2. When prompted for mic selection choose another mic
  3. See the console

Expected behavior An error is prompted to the console: A MediaStreamTrack ended due to a capture failure

Hardware

Additional context The track returned by getUserMedia seems to be live, ready and not muted but after a bit "ended" is called on the track. This seems to be affecting other services like Jitsi and Twilio https://github.com/twilio/twilio-video.js/issues/1671 Webkit bug https://bugs.webkit.org/show_bug.cgi?id=233473

┆Issue is synchronized with this Jira Task

keianhzo commented 1 year ago

This has been fixed in Safari 15 so in theory we should be able to restore the mic input selection there.