Play downloaded audio file


I am trying for the past couple of days to download an mp3 file from a server and when the file is completely downloaded play the file from the device. I am downloading the file using the file transfer plugin to cordova.file.dataDirectory and I used the native audio plugin to play the file but it didn’t work. I tried this on my android device.

Could any one help with an example on how to achieve this?