Default storage path utility for Cordova Media plugin
platforms: android,ios
$ cordova plugin add gr.eworx.mediaDefaultStoragePath


This is a utility plugin regarding the Cordova Media Plugin. It provides a helper method that returns the absolute path of the directory where the Cordova media recorder saves recordings by default, if the recorder object is constructed given a simple file name, with no uri schema.

A typical example of such a case is the following:

var recorder = new Media('myFile.wav');

To find out the absolute path of the recording:

var util = new;
util.getDefaultStoragePath(function(directoryPath) {
    var filePath = directoryPath + '/myFile.wav';
    // do something with filePath

This plugin currently supports Android and iOS