No sound when using Bluetooth on Cordova Android with web audio API

I use the web audio API to play audio files in the Cordway Crosswalk application. Everything works fine until it tries to use a Bluetooth headset, and the problem only occurs on Android. The Bluetooth sound works fine if I use the Cordova Media plugin, although I need the web audio API for the biquad and panner filter.

The only way to make the sound work with Bluetooth is to start playing the sound, and then connect the Bluetooth device. If Bluetooth is connected before launching the application, this is when a problem occurs. I also tried adding Bluetooth resolution to AndroidManifest.

Are there any solutions for this?

+4
source share

Source: https://habr.com/ru/post/1662190/


All Articles