[ 
https://issues.apache.org/jira/browse/CB-7874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesper Schultz updated CB-7874:
-------------------------------
    Description: 
My Cordova/Javascript app plays mp3 audio files in a user customizable 
countdown sequence. This works as designed when playing directly on the 
smartphone, both Android and iOS.

If bluetooth is enabled on the device and audio is output on an external 
speaker the sound is choppy. Some audio segments are cut off, others omitted 
entirely. The problem is present both on iOS and Android.

The app is JS/CSS/HTML and can be run 'native' in a browser. When run on a Mac 
with bluetooth enabled, there is no problem.

The problem has to do with Cordova vs. Bluetooth. With Cordova 'on', ie. 
running on a device outputting audio over BT, sound is unstable. Running w/o 
BT, there is no problem. Running on a laptop there is no problem with or w/o BT 
enabled.

When debugging the app running with device bluetooth enabled (ie sound via 
external speaker) LogCat registers that Bluetooth need permissions. It ought to 
be invisible to the app that the device has BT enabled, yes?

(When the sound fails LogCat notes that it can not play because an audioplayer 
is not available.)

  was:
My Cordova/Javascript app plays mp3 audio files in a user customizable 
countdown sequence. This works as designed when playing directly on the 
smartphone, both Android and iOS.

If bluetooth is enabled on the device and audio is output on an external 
speaker the sound is choppy. Some audio segments are cut off, others omitted 
entirely. The problem is present both on iOS and Android.

The app is JS/CSS/HTML and can be run 'native' in a browser. When run on a Mac 
with bluetooth enabled, there is no problem.

The problem has to do with Cordova and Bluetooth. With Cordova 'on', ie. 
running on a device outputting audio over BT, sound is unstable. Running w/o 
BT, there is no problem. Running on a laptop there is no problem with or w/o BT 
enabled.

When debugging the app running with device bluetooth enabled (ie sound via 
external speaker) LogCat registers that Bluetooth need permissions. It ought to 
be invisible to the app that the device has BT enabled, yes?

(When the sound fails LogCat notes that it can not play because an audioplayer 
is not available.)


> Audio over bluetooth is unstable
> --------------------------------
>
>                 Key: CB-7874
>                 URL: https://issues.apache.org/jira/browse/CB-7874
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaLib, iOS
>    Affects Versions: 2.4.0, 3.5.0
>            Reporter: Jesper Schultz
>            Priority: Minor
>
> My Cordova/Javascript app plays mp3 audio files in a user customizable 
> countdown sequence. This works as designed when playing directly on the 
> smartphone, both Android and iOS.
> If bluetooth is enabled on the device and audio is output on an external 
> speaker the sound is choppy. Some audio segments are cut off, others omitted 
> entirely. The problem is present both on iOS and Android.
> The app is JS/CSS/HTML and can be run 'native' in a browser. When run on a 
> Mac with bluetooth enabled, there is no problem.
> The problem has to do with Cordova vs. Bluetooth. With Cordova 'on', ie. 
> running on a device outputting audio over BT, sound is unstable. Running w/o 
> BT, there is no problem. Running on a laptop there is no problem with or w/o 
> BT enabled.
> When debugging the app running with device bluetooth enabled (ie sound via 
> external speaker) LogCat registers that Bluetooth need permissions. It ought 
> to be invisible to the app that the device has BT enabled, yes?
> (When the sound fails LogCat notes that it can not play because an 
> audioplayer is not available.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to