You are trying to play the audio with the webview library. It is likely using the HTML5 API for audio or webaudio. If it is neither of these, then you need to ask the author.
Android 4.4.4 is Kitkat. The standard webview library was exchanged for the chromium version. This means your audio library might be confused about this or you need to give the library knowledge about this library. This also means your code may not work on devices before 4.4.4. (Mostly, because you cannot test it.)
The link you point to is likely using the core media plugin, even though they dont say so. In addition, the post is over 3 years old. Many thing have changed since them. NOTE: you have installed the media plugin in your config.xml. This is likely why your loop works.
You should start over. You've made many errors. In addition, to all that you have, You will need to implement the whitelist plugin (if you are going to import files, or talk to the network).
FIRST TRY this sample app - example plays on Android and iOS. You can download the Android version and test it. The iOS version requires I have your UUID compiled in.
There are 16 audio plugins you can choose from. I know a few do real time audio playback and have better control than the "core" plugin.
You should read:
Phonegap-Media-Test - source code for the example that plays on Android and iOS. You can download the Android version and test it.
UPDATE: 2015-12-01 - 2am Previously, I had forgotten to add a wild-card (*) to the CSP meta tag. I am now including this. This meta tag should be added to the header of the index.html file that is playing the audio.
style-src * 'self' 'unsafe-inline' 'unsafe-eval';
script-src * 'self' 'unsafe-inline' 'unsafe-eval';">
UPDATE: 2015-12-01 - 3pm
@Tuan, I've applied all the fixes as outlined in
The audio is now working on my Android LG Leon/Android 5.1.1
Truthfully, I would never do this on my own, but your code had enough working that after I tested it on my firefox(v34) browser, I was fairly certain it would work.
The code has been removed. Ask in the comments, if you need code.
Thanks but I knew Phonegap can play audio. My issue is the Phaser game can play sound after porting by Phonegap. Your example works because it doesn't play the audios by Phaser's functions.
Apparently I was not clear enough. You know very little about the task ahead, you can spend weeks and months and never find an answer - mostly because you have made bad assumption about Cordova/Phonegap. To fix your problem 1) don't load audio samples from the internet 2) if you must load audio sample internet, you will need to implement the whitelist system - otherwise your request will be blocked. 3) the audio library for Phaser may not be supported - you need details on it to make reasonable decisions on it.
To be extra clear, your post now looks confused. Mostly because you are making bad assumptions. And the addition to not get you any closer to your goal --- which appears to be to play this Phase audio library. This is why I posted the links. Best of Luck.
HMM... I'm not being clear on this. Your browser is not the webview library that Cordova/Phonegap uses. You can read my Notes on webview here. In short, every browser uses it's own custom library. (This is the reason for caniuse.com) The audio part has been the most inconsistent. The only way to know if an audio library works, is to make the most simple test. Otherwise, you are wasting you time. Best of Luck.
@Tuan, I found an error in my CSP which may explain why you are not getting sound. Previously, I had script-src 'self' 'unsafe-inline' 'unsafe-eval';. I did not have the wild card for loading the network. It should have been script-src * 'self' 'unsafe-inline' 'unsafe-eval';. I found this out about an hour ago testing a new App. I am surprised no one has mentioned it until now. Let me know. I'm adding this to my original answer.