I am using Phonegap 2.8. I have copied and pasted their example for the play
method in to a page and deployed it to my Nexus S running Android 4.1.2. I have checked, and double checked my config.xml and the androidmanifest.xml. The only lines not present in my androidmanifest.xml are
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Before I click the play button, and after the deviceready
event, I get an error:
08-20 13:06:13.574: MediaPlayer(878): Error (1,-1004)
What am I missing?
update: I have created a brand new PhoneGap 2.9 android project and have copy/pasted the play
example from the link above and it still gives the same error. Also, it seems the OnSuccess and OnError methods do not get fired.
update 2 Using the emulator, this example works fine, so it seems it maybe my phone? What settings could cause that?