Audio not playing in the mobile (works only in desktop navigator)

Audio not playing in the mobile (works only in desktop navigator)

Hi,

I'm having a problem playing an audio when I test my application in the mobile. I have a simple audio element like the following in the DOM:
  1. <audio id="audioID">
  2.       <source src="audio.mp3" type="audio/mp3" preload="auto" />
  3.       <source src="audio.ogg" type="audio/ogg" preload="auto" />
  4. </audio>
Then I play it using:
  1. $("#audioID")[0].play();
This works fine in my computer, using Chrome, but when trying it in my application (phonegap app, or directly in the Chrome browser from Android) it doesn't work.

Anybody knows what's happening?

Thanks,
Marc