Switch branches/tags
Nothing to show
Find file History
Latest commit 130c2cd Mar 11, 2015 @cfjedimaster cfjedimaster more misc
Permalink
..
Failed to load latest commit information.
www more misc Mar 11, 2015
readme.md more misc Mar 11, 2015

readme.md

Media Example

This is a simple example of using the Media plugin to play an MP3 file located in the application. This application requires the Media and Device plugin to work properly.

cordova plugin add org.apache.cordova.media
cordova plugin add org.apache.cordova.device

When the application launches, it presents one button. Clicking the button simply plays the MP3. Make note of how Android requires a slightly different path in order to play local files. The helper function, getMediaURL, uses the Device plugin to sniff for and detect Android.