Daniel Marino
1 February 2025
IOS Safari Forces Audio Output to Speakers When Using getUserMedia()

When working with getUserMedia() on iOS Safari, many developers encounter unforeseen problems, particularly with regard to audio routing. The user experience is disrupted when the microphone is activated since the audio output frequently transitions from wired headsets or Bluetooth headphones to the device's built-in speakers. Applications that use real-time communication, such online meetings or AI assistants, are most impacted by this issue. Device enumeration and the Web Audio API are two workarounds that can assist alleviate this problem.