Skip to content

[BUG] Missing Android Auto external speaker support #182

@EmilJunker

Description

@EmilJunker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions