Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Audio Routing Fails in Safari iOS for Twilio Voice SDK #304

Open
myst4 opened this issue Dec 13, 2024 · 1 comment
Open

[BUG] Audio Routing Fails in Safari iOS for Twilio Voice SDK #304

myst4 opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@myst4
Copy link

myst4 commented Dec 13, 2024

Audio Routing Fails in Safari iOS for Twilio Voice SDK

Environment

  • Platform: iOS Safari
  • Framework: Javascript
  • Twilio Voice SDK: 2.12.3

Description

When initiating a voice call using Twilio Voice SDK in a Javascriot application on Safari iOS, the audio is consistently routed to the speaker instead of the earpiece, regardless of attempted audio routing configurations.

Steps to Reproduce

  1. Create a Javascript application using Twilio Voice SDK
  2. Initialize a voice call
  3. Observe audio output on an iOS device using Safari

Expected Behavior

Call audio should be routed to the device's earpiece by default or through explicit configuration.

Actual Behavior

Call audio is always played through the device speaker, even when attempting to use audio routing methods like:

  • device.audio.setAudioConstraints()
  • navigator.mediaDevices.selectAudioOutput()
  • Twilio.Device.audio.speaker(false)
  • Manual device selection techniques

Detailed Investigation

  • Confirmed issue occurs across multiple iOS devices
  • Attempted solutions include:
    • Explicit audio constraint settings
    • Device enumeration and selection
    • Checking for browser-specific audio routing methods

Potential Limitations

Suspect this may be related to WebRTC audio routing restrictions in Safari iOS.

@myst4 myst4 added the bug Something isn't working label Dec 13, 2024
@charliesantos
Copy link
Collaborator

@myst4 thanks for submitting. I'll submit an internal ticket to track this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants