Playing Audio on Device

  • 2
  • Question
  • Updated 9 years ago
Hey all,
I read through the PhoneGap documentation and got the code working. I also managed to get it to play local files. I have a few questions though.

Can PhoneGap's media function be made so that local audio files can be played using the relative directory:
new Media("sounds/Shuffle.wav").play();
Instead of:
new Media("/android_asset/www/sounds/Shuffle.wav").play();

Also, can the PhoneGap documentation on Media be updated to show what extensions are supported? Or at least the major ones (unless all formats are supported).

The "full examples" should probably also be updated with ones that are more specific to the sections they are in (e.g. the "media.release()" section has a full example with no release() call.

Since this is still Beta, I don't expect any of these to be done since it states it will change. Just suggestions!
Photo of jontheghost

jontheghost

  • 4 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 2
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Hi Jon,

Right now, Get Satisfaction is mainly used for PhoneGap Build support - the web service, as opposed to the mobile application framework.

The best place to ask questions about the PhoneGap API would be the Google Group:
http://groups.google.com/group/phonegap
That's where most of the PhoneGap devs congregate, and are easiest to reach.