Thursday, May 03, 2012

PhoneGap and Playing MP3 File in Windows Phone 7 Project

It took me a while to find this link, so I am posting it here for future reference and hopefuly it will make your .

The solution is here.

and the text reads as follows:

Add the following to Properties/WMAppManifest.xml
<Capability Name="ID_CAP_MEDIALIB"/>And then the path for the mp3 needed the following:
app/www/test.mp3 or you could try /app/www/test.mp3

For more on PhoneGap's Media API, see this doc page.

No comments: