I am trying to add audio to my app Using a USB and Intel XDK it works fine but when I try it on my phone it doesn't work
I have tried
<audio autoplay loop>
<source src="/android_asset/www/background.mp3" type="audio/mp3" />
</audio>
,
<embed src="/android_asset/www/background.mp3" autostart="true" width="0" height="0">
</embed>
and
myMedia = new Media("/android_asset/www/background.mp3");
myMedia.play();
I tried them with and without '/android_asset/www/'.I have the media plugin installed for Phonegap too. Also, the third one stops all code after it from running.
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire