react-native-sound-player icon indicating copy to clipboard operation
react-native-sound-player copied to clipboard

[BUG] Missing Android Auto external speaker support

Open EmilJunker opened this issue 3 months ago • 0 comments

Describe the bug When the Android phone is connected with Android Auto, sounds played with react-native-sound-player still come out of the phone's speaker instead of the connected external speaker.

To Reproduce Steps to reproduce the behavior:

  1. Connect your Android phone to a car with Android Auto. Alternatively, install the Android Auto simulator on your PC and connect your phone with that via ADB.
  2. Play a YouTube video, a Spotify song or anything else on your phone and observe that the sound comes out of the car/PC speaker and not the phone's own speaker.
  3. Now play a sound with react-native-sound-player and observe that the sound comes out of the phone's speaker ☹️

Expected behavior Sounds played with react-native-sound-player should come out of the connected car/PC speaker when connected with Android Auto, just like sound output from any other app does.

Platform

  • OS: Android

Additional context I tried calling setSpeaker(true) but it had no effect of course since it's only for iOS.

EmilJunker avatar Oct 02 '25 20:10 EmilJunker