Hi.
Just on with a educational app and need a little help with the audio.
Problem is ( there are quite a few screens with audio that is called from a button, all seems fine until the app has been running for a while, or when the buttons pressed reach around 25-30 then there is a terrible lag in the audio starting, (sometimes not playing at all),i have tried using the audio widget as suggested in other parts of the forum, but this seems to be worse?,
what i have been doing is placing the following in the Actions: RunJavascript
if (media2){media2.stop();}
done = function() {};
error = function() {};
status = function(status) {};
media1 = phoneui.createMedia(‘E.mp3’, done, error, status);
// then just use Cordova Media API:
media1.play();
media.release();
can anyone give me help with this, have i got the code right? or is there anything else i should add. using the above did speed up the audio playing when the button was pressed, but as said it stills lags after 25-30 presses of the buttons.
is there a way to media.release when the pages are changed?
Just want to get this finished…….
Uplink1001