Had anyone had any issue with trying to play audio in Ion using the PhoneGap Media API?
I'm using a simple .mp3 file and it works fine in the Simulator in Graphite, but is failing when I load the app in Ion. I have not yet tested on an android device, but will do that next.
I can also say that when I looked at the Media sample, it was referencing an MP3 on the internet. So I changed my variable to use that path and it does work on Ion when I reference an internet URL. Although I seem to have to press play twice for it to work..shrug maybe delay in pulling down the MP3 file.
Anyhow, I used the following code to ensure it's got the correct file in the project:
Any ideas on why it might be doing that? I've tried to do as much debugging in Graphite as possible, but kinda lost for how to debug on the device itself, other then a few popups making sure the object is there, etc.
Since I have it working fine when calling an internet URL to an mp3, I have to assume its the way the file is stored. Is there a way to detect if the file is in the download package? I have the file at the root of my project and not in any subfolders. Figured that was safest to start out with and get working.
Thanks in advance. :)