My goal is to develop a cross-platform soundboard app using Cordova Phonegap. While the Android version runs smoothly, I am encountering difficulties with the iOS version when it comes to playing sounds. I have implemented SoundJS and PreloadJS for loading and playing audio files. Through the Phonegap remote debugging server, I discovered that iOS identifies the audio as "application/octet stream" (refer to images).
Everything functions as expected on Android.
However, the issue arises with iOS.
This is how I load the audio:
var sound3 = "sound3";
createjs.Sound.registerSound("audio/anybody.mp3", sound3);
$(function(){
$( "#sound3" ).bind( "tap", tapHandler )
function tapHandler( event ){
sound3.play();
}
});
I would appreciate any assistance in resolving this matter.