I have my phonegap 3.5 app with angularjs and I have my song.mp3 in my root directory with the index.html file The app works great in my android device and in phonegap application but I can't play the song.mp3 file I use the cordova media plugin and it always gives me the code 1 error I tried also the ngCordova plugin the same code error . my code is
var src ="song.mp3";
// I tried also
// var src="/android_asset/www/song.mp3";
// and src ="file:///song.mp3";
var media = new Media(src,function(){
console.log("playing");
,function(err){
console.log(err.code);
});
media.play();