Hi,
I’ve managed to include mp3 files in the ipa/apk packages by using “Offline Support” setting “AppCache Support”.
The audio works fine in web mode, but not in App mode…
Here’s my code:
function initAudio(audioId) {
audio = new Audio();
isPlaying = false;
//stop audio when changing browser page or click home btn
$(window).bind('pagehide',stopAudio);
}
//start playing, update button label to STOP
function playAudio(audioId) {
audio.src = 'audio/' + audioId + '.mp3';
if (!audio) return;
buttonId = '#m1-wordlist-listItem-' + audioId;
$(buttonId).click(audio.play());
}
Please advise.
Fabio Chen