I am developing a telephone service application and I have an audio file that I want to play in a path like this www / Sounds / sound.mp3, and I'm trying to access this file using the Media Phonegap object to play it.
I can not understand the access path to this sound file in the javascript file that uses the Media object? I tried paths, for example, file: ///www/Sounds/sound.mp3, relative paths, etc., and I cannot access it. I keep getting the following error in xcode 4
Will attempt to use file resource 'file:///www/Sounds/sound.mp3'
Unknown resource 'file:///www/Sounds/sound.mp3'
Which path should I use to access the file? Or do I need to copy a sound file from my WWW directory and to the My Resources folder and access it?
In my WWW folder it is indicated, not sure if it matters.
source
share