Hi,
I am making apps for IOS and Android (using PhoneGap) and I have a
functioning set for playing audio basically on any browser. I should
be satisfied and stop right here but I cannot:
I would like to use the PhoneGap Media object for both Android and
IOS. I had it working right off with Android like so:
Creating the Media Object e.g. at init
var soundSrc = "/android_asset/www/audio/soundclip.m4a;
soundObject = new Media( soundSrc, onSuccess, onError, null, null );
The playing my different clips somewhere else ( here the clips are
a.m4a, b.m4a, c.m4a etc. - the letter variable contains the letter
constructing the filename for the clip to be played)
...
soundObject.src = "/android_asset/www/audio/letters/" + letter +
"m4a";
soundObject.play();
...
I would like to do the same on IOS but I haven't been able to figure
out the path to my clips despite all advice I have run over so far. I
tried absolute path's, I tried file:///,
http://localhost,
http://127.0.0.1.
PhoneGap (js) produces a pop-up with the message:
gap:["Media","startPlayingAudio","Media1","true"]
together with a message containing an "ID-string","Mypath" like so:
["33c503dd7-fc2a-067a--7ea8-365d01271740","/audio/letters/y.m4a"]
Any ideas?
If not I guess I continue using the HTML5 part of my audio function.
/Ralf