Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

372
Visualizações
How to play sound through the device's speakers even when connected to radio/bluetooth in the car?

When my mobile device is connected to my car's bluetooth and configured on radio (FM) and not (BT), the sounds of the device are not getting played, either from the car's speakers or from the device's speakers.

I am playing audio via JS like that:

import sound from '../my-sound.mp3'
const audio = new Audio(sound)
audio.play()

The sound works both on foreground and background, but not when connected to the car's bluetooth.

I do aware that this feature exists, as it is getting used in Waze and even when connecting to radio and hearing music, the Waze's vocal instructions are getting played through the physical device's speakers. They also have the ability to configure this option, like showed in the following screenshot:

enter image description here

I am using Cordova as well, so any implementation or solution either in JS or Cordova is welcome.

In Cordova I am using the official device media plugin, but couldn't find any option to achieve what I need..

I also looked on the Web API: https://developer.mozilla.org/en-US/docs/Web/API but unfortunately it's completely complex and complicated so I barely could understand anything...

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda