[
https://issues.apache.org/jira/browse/CB-7874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189743#comment-14189743
]
Jesper Schultz commented on CB-7874:
------------------------------------
sorry...
When the app is deployed on a smartphone (iOS/Android) I use this command to
initiate an audio file:
audiobit = new Media( "audio/xxx.mp3" );
(Cordova doc.:
https://cordova.apache.org/docs/en/3.3.0/cordova_media_media.md.html )
When the app is run on a laptop, I use HTML5 tags:
audiohandle = document.createElement('audio');
audiohandle.setAttribute('src', "audio/" + "xyz.mp3");
audiohandle.load;
> 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]