Phonegap Media API attempts to access audio locally

I am currently working on an application that should play audio from an external source. It is in the .amr format, but by giving it a URL and looking at the log code, I see it trying to access local logging:

FAILED renaming /storage/sdcard0/tmprecording.3gp to /storage/sdcard0/http://URL/audio.amr

Here is my player code

    function play(source) { 
var media = new Media(source, Played, Failed); 
media.play(); 
document.getElementById('status').innerHTML = "playing"; 
}

with the function associated with the button and specifying the audio URL. I am testing this on Android.

Thank!

+3
source share
1 answer

Nothing, it was just a format problem, .amr is an incompatible format, so it didn't work

+1
source

All Articles