mardi 23 décembre 2014

Audio not working in APK

I've made a app in HTML5 CSS and jQuery on Phonegap but the audio is not working when it is an .APK file. I tested my app on the Phonegap developer app and on that, the app is working great! But when it is an .APK file the audio is not working anymore.. Is there something wrong in my config.xml?



http://ift.tt/1E6Jt3I


Btw, this is how I play audio in my game.js:



pop = new Audio('/android_asset/www/sounds/bubble-pop.wav')
music = new Audio('/android_asset/www/sounds/music.mp3')
fail = new Audio('/android_asset/www/sounds/fail.wav')

pop.play();
music.play();
fail.play();

Aucun commentaire:

Enregistrer un commentaire